diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-03-29 22:56:21 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-03-29 22:56:21 -0700 |
commit | fa5d9473deaa345e5ca76375fbe21aaae3516b89 (patch) | |
tree | 86e43a6d3ef6a40c665f3cbd08080440439521a5 /test/exec | |
parent | ae47e5afc5674c13bdbff3afc887a1505f15bd4f (diff) | |
download | unicorn-fa5d9473deaa345e5ca76375fbe21aaae3516b89.tar.gz |
Diffstat (limited to 'test/exec')
-rw-r--r-- | test/exec/test_exec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/exec/test_exec.rb b/test/exec/test_exec.rb index 7ce0637..2d0528f 100644 --- a/test/exec/test_exec.rb +++ b/test/exec/test_exec.rb @@ -215,13 +215,13 @@ end rescue Errno::ENOENT (sleep(DEFAULT_RES) and (tries -= 1) > 0) and retry end - assert_equal current_pid, File.read(pid_file).to_i tries = DEFAULT_TRIES while File.exist?(old_file) (sleep(DEFAULT_RES) and (tries -= 1) > 0) or break end assert ! File.exist?(old_file), "oldbin=#{old_file} gone" + assert_equal current_pid, File.read(pid_file).to_i # fix the bug File.open("config.ru", "wb") { |fp| fp.syswrite(HI) } |