Skip to content

Commit

Permalink
Fix position of setting ran true
Browse files Browse the repository at this point in the history
Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
  • Loading branch information
ganmacs committed Jan 20, 2020
1 parent 643d737 commit 64c2c5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/plugin_helper/test_child_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,11 @@ def configure(conf)
ary = []
Timeout.timeout(TEST_DEADLOCK_TIMEOUT) do
ran = false
args = ["-e", "while sleep 0.2; puts 1; STDOUT.flush; end"]
args = ["-e", "while sleep 0.1; puts 1; STDOUT.flush; end"]
@d.child_process_execute(:t3, "ruby", arguments: args, mode: [:read]) do |io|
ran = true
begin
while @d.child_process_running? && line = io.readline
ran ||= true
ary << line
end
rescue
Expand Down

0 comments on commit 64c2c5a

Please sign in to comment.