Skip to content

Commit

Permalink
make sleep time longer because shorter one fails sometimes on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
tagomoris committed Nov 7, 2016
1 parent 39b9060 commit 4686902
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/plugin_helper/test_child_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ def configure(conf)
block_exits = false
callback_called = false
exit_status = nil
args = ['-e', 'sleep ARGV[0].to_i; puts "yay"; File.unlink ARGV[1]', '10', @temp_path]
args = ['-e', 'sleep ARGV[0].to_i; puts "yay"; File.unlink ARGV[1]', '25', @temp_path]
cb = ->(status){ exit_status = status; callback_called = true }

str = nil
Expand All @@ -675,8 +675,7 @@ def configure(conf)
assert callback_called
assert exit_status

assert_nil exit_status.exitstatus
assert_equal 3, exit_status.termsig # SIGQUIT
assert_equal [nil, 3], [exit_status.exitstatus, exit_status.termsig] # SIGQUIT

assert File.exist?(@temp_path)
assert_equal "", str
Expand Down

0 comments on commit 4686902

Please sign in to comment.