kgio RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: kgio@librelist.org
Subject: [PATCH 3/3] test: increase delta range for timing-sensitive test
Date: Mon,  5 Mar 2012 23:47:11 +0000	[thread overview]
Message-ID: <1330991231-21204-1-git-send-email-normalperson@yhbt.net> (raw)
In-Reply-To: 20120305234508.GA15184@dcvr.yhbt.net

This appears to be needed for Debian GNU/kFreeBSD under KVM.
---
 test/test_default_wait.rb |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/test_default_wait.rb b/test/test_default_wait.rb
index 55631fd..7137d0c 100644
--- a/test/test_default_wait.rb
+++ b/test/test_default_wait.rb
@@ -24,7 +24,7 @@ class TestDefaultWait < Test::Unit::TestCase
     t0 = Time.now
     assert_nil a.kgio_wait_readable(1.1)
     diff = Time.now - t0
-    assert_in_delta diff, 1.1, 0.05
+    assert_in_delta diff, 1.1, 0.2
 
     b.kgio_write '.'
     assert_equal a, a.kgio_wait_readable(1.1)
@@ -37,7 +37,7 @@ class TestDefaultWait < Test::Unit::TestCase
     t0 = Time.now
     assert_nil b.kgio_wait_writable(1.1)
     diff = Time.now - t0
-    assert_in_delta diff, 1.1, 0.05
+    assert_in_delta diff, 1.1, 0.2
 
     a.kgio_read(16384)
     assert_equal b, b.kgio_wait_writable(1.1)
-- 
1.7.9.2.358.g22243



      parent reply	other threads:[~2012-03-05 23:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-04 16:02 kgio, autopush test fails on Debian GNU/kFreeBSD 375gnu
2012-03-05  8:43 ` Eric Wong
2012-03-05 18:59   ` 375gnu
2012-03-05 23:45     ` Eric Wong
2012-03-05 23:47       ` [PATCH 1/3] accept4: require SOCK_NONBLOCK/SOCK_CLOEXEC macros Eric Wong
2012-03-05 23:47       ` [PATCH 2/3] autopush: fix/enable under Debian GNU/kFreeBSD Eric Wong
2012-03-05 23:47       ` Eric Wong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/kgio/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1330991231-21204-1-git-send-email-normalperson@yhbt.net \
    --to=normalperson@yhbt.net \
    --cc=kgio@librelist.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/kgio.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).