Skip to content

Commit

Permalink
Try using real nio.process.run in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MisanthropicBit committed Oct 29, 2024
1 parent bfbacea commit 7274c99
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions tests/adapter_results_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,22 +146,22 @@ describe("adapter.results", function()
function()
config.configure({ parametric_test_discovery = true })

-- Stub nio process functions since running `busted --list` appears to be broken
stub(
nio.process,
"run",
-- Fake process object
{
stderr = {
read = function()
return table.concat(stderr_output, "\r\n"), nil
end,
},
result = function()
return 0
end,
}
)
-- -- Stub nio process functions since running `busted --list` appears to be broken
-- stub(
-- nio.process,
-- "run",
-- -- Fake process object
-- {
-- stderr = {
-- read = function()
-- return table.concat(stderr_output, "\r\n"), nil
-- end,
-- },
-- result = function()
-- return 0
-- end,
-- }
-- )

-- NOTE: neotest.lib.treesitter.parse_positions uses lib.file.read so temporarily revert it
---@diagnostic disable-next-line: undefined-field
Expand Down Expand Up @@ -227,21 +227,21 @@ describe("adapter.results", function()
config.configure({ parametric_test_discovery = true })

-- Stub nio process functions since running `busted --list` appears to be broken
stub(
nio.process,
"run",
-- Fake process object
{
stderr = {
read = function()
return table.concat(stderr_output, "\r\n"), nil
end,
},
result = function()
return 0
end,
}
)
-- stub(
-- nio.process,
-- "run",
-- -- Fake process object
-- {
-- stderr = {
-- read = function()
-- return table.concat(stderr_output, "\r\n"), nil
-- end,
-- },
-- result = function()
-- return 0
-- end,
-- }
-- )

-- NOTE: neotest.lib.treesitter.parse_positions uses lib.file.read so temporarily revert it
---@diagnostic disable-next-line: undefined-field
Expand Down Expand Up @@ -341,21 +341,21 @@ describe("adapter.results", function()
config.configure({ parametric_test_discovery = true })

-- Stub nio process functions since running `busted --list` appears to be broken
stub(
nio.process,
"run",
-- Fake process object
{
stderr = {
read = function()
return table.concat(stderr_output, "\r\n"), nil
end,
},
result = function()
return 0
end,
}
)
-- stub(
-- nio.process,
-- "run",
-- -- Fake process object
-- {
-- stderr = {
-- read = function()
-- return table.concat(stderr_output, "\r\n"), nil
-- end,
-- },
-- result = function()
-- return 0
-- end,
-- }
-- )

-- NOTE: neotest.lib.treesitter.parse_positions uses lib.file.read so temporarily revert it
---@diagnostic disable-next-line: undefined-field
Expand Down

0 comments on commit 7274c99

Please sign in to comment.