about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-03-29 22:56:21 -0700
committerEric Wong <normalperson@yhbt.net>2009-03-29 22:56:21 -0700
commitfa5d9473deaa345e5ca76375fbe21aaae3516b89 (patch)
tree86e43a6d3ef6a40c665f3cbd08080440439521a5
parentae47e5afc5674c13bdbff3afc887a1505f15bd4f (diff)
downloadunicorn-fa5d9473deaa345e5ca76375fbe21aaae3516b89.tar.gz
-rw-r--r--test/exec/test_exec.rb2
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) }