Skip to content

Commit

Permalink
Merge pull request #2906 from ganmacs/wait-until-line-apears
Browse files Browse the repository at this point in the history
It can take some time to output lines
  • Loading branch information
ganmacs committed Mar 24, 2020
2 parents 39df11a + 4aa2e94 commit 1ba383f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/plugin_helper/test_child_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,11 @@ def configure(conf)
assert_equal [], @d.log.out.logs

@d.stop # nothing occurs
sleep TEST_WAIT_INTERVAL_FOR_LOOP
lines1 = ary.size
assert{ lines1 > 1 }
lines1 = nil
waiting(TEST_WAIT_INTERVAL_FOR_LOOP * 3) do
lines1 = ary.size
lines1 > 1
end

pid = @d._child_process_processes.keys.first
# default value 10 is too long for test
Expand Down

0 comments on commit 1ba383f

Please sign in to comment.