about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-06-15 23:31:28 -0700
committerEric Wong <normalperson@yhbt.net>2011-06-15 23:31:28 -0700
commit579f0ea63d1f6976a9a312423f45e8d38357ea68 (patch)
tree12d5ccf23fc724278cdc8704a88dd68b7ad4389b
parent9f6e03fcced2ff695eaa355709312a8fe2d4c187 (diff)
downloadraindrops-579f0ea63d1f6976a9a312423f45e8d38357ea68.tar.gz
The last_data_recv field is dependent on the CONFIG_HZ of
the kernel, so the stock 250 HZ kernel can change the
timing on us.
-rw-r--r--test/test_linux_tcp_info.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_linux_tcp_info.rb b/test/test_linux_tcp_info.rb
index 1751dee..f429d1d 100644
--- a/test/test_linux_tcp_info.rb
+++ b/test/test_linux_tcp_info.rb
@@ -49,7 +49,7 @@ class TestLinuxTCP_Info < Test::Unit::TestCase
     s = TCPServer.new(TEST_ADDR, 0)
     c = TCPSocket.new TEST_ADDR, s.addr[1]
     c.syswrite "."
-    sleep delay
+    sleep(delay * 1.2)
     a = s.accept
     i = Raindrops::TCP_Info.new(a)
     assert i.last_data_recv >= delay_ms, "#{i.last_data_recv} < #{delay_ms}"