Skip to content

Commit

Permalink
tests: remove old test
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarriga committed Apr 4, 2024
1 parent 173f285 commit 5800f58
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions tests/process_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -204,28 +204,4 @@ describe("process", function()
local exit_code = process.result()
assert.equal(1, exit_code)
end)

a.it("with returns exit code", function()
local process = assert(nio.process.run({
cmd = "bash",
args = { "-c", "exit 1" },
}))

local exit_code = process.with(function() end)

assert.equal(1, exit_code)
end)

a.it("with closes streams", function()
local process = assert(nio.process.run({
cmd = "echo",
args = { "test" },
}))

process.with(function() end)

local stdout, stdout_err = process.stdout.read()
assert.equal("", stdout)
assert.Not.Nil(stdout_err)
end)
end)

0 comments on commit 5800f58

Please sign in to comment.