Skip to content

Commit cff2a07

Browse files
committed
test: activate pending tests related to newline stdin processing
Closes #634
1 parent f303c7c commit cff2a07

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/plenary/job_spec.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ describe("Job", function()
9999
assert.are.same(job:result(), results)
100100
end)
101101

102-
pending("should split stdin across newlines with no ending newline", function()
102+
it("should split stdin across newlines with no ending newline", function()
103103
local results = {}
104104
local job = Job:new {
105105
-- writer = "hello\nword\nthis is\ntj",
@@ -113,6 +113,8 @@ describe("Job", function()
113113
job:start()
114114
job:send "hello\nwor"
115115
job:send "ld"
116+
117+
wait_for_result(job, { "hello", "world" })
116118
job:shutdown()
117119

118120
assert.are.same(job:result(), { "hello", "world" })
@@ -137,7 +139,7 @@ describe("Job", function()
137139
assert.are.same(job:result(), results)
138140
end)
139141

140-
pending("should return last line when there is no ending newline", function()
142+
it("should return last line when there is no ending newline", function()
141143
local results = {}
142144
local job = Job:new {
143145
command = "printf",

0 commit comments

Comments
 (0)