From 3b48d6c823a7da34c0b37d8eb3c11964c4a3ba89 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 14 Apr 2011 02:31:50 +0000 Subject: test_autopush: use assert_in_delta for test Some systems are slower than others... --- test/test_autopush.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_autopush.rb b/test/test_autopush.rb index bbd4b46..e549adc 100644 --- a/test/test_autopush.rb +++ b/test/test_autopush.rb @@ -94,7 +94,7 @@ class TestAutopush < Test::Unit::TestCase @rd.kgio_write "HI\n" @wr.kgio_read(3, rbuf) diff = Time.now - t0 - assert(diff >= 0.200, "nopush broken? diff=#{diff} > 200ms") + assert_in_delta(diff, 0.200, 0.01, "nopush broken? diff=#{diff} > 200ms") assert_equal "HI\n", rbuf end -- cgit v1.2.3-24-ge0c7