Skip to content

Commit 40ca72c

Browse files
Isaiah FrantzIsaiah Frantz
authored andcommitted
return the expected object
1 parent cc8c21d commit 40ca72c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/octocatalog-diff/tests/util/parallel_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ def wait_on_me(pid)
3939
status = nil
4040
# just in case status never equals anything
4141
count = 100
42-
while status.nil? or count <= 0
43-
status = Process.waitpid(pid, Process::WNOHANG)
42+
while status.nil? or count > 0
4443
count -= 1
44+
status = Process.waitpid2(pid, Process::WNOHANG)
4545
end
46+
status
4647
end
4748
end
4849

0 commit comments

Comments
 (0)