diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-15 23:31:28 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-15 23:31:28 -0700 |
commit | 579f0ea63d1f6976a9a312423f45e8d38357ea68 (patch) | |
tree | 12d5ccf23fc724278cdc8704a88dd68b7ad4389b | |
parent | 9f6e03fcced2ff695eaa355709312a8fe2d4c187 (diff) | |
download | raindrops-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.rb | 2 |
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}" |