about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2013-10-20 09:25:17 +0000
committerEric Wong <e@80x24.org>2013-10-21 04:09:17 +0000
commit92172ac2c4e094cb2d8f8669a1f7666501425263 (patch)
tree545f6197baaeb5756cc91babec7ea7ae05d7f879 /test
parenteece181d9f6462114fc59a15c9546d92f99a9499 (diff)
downloadyahns-92172ac2c4e094cb2d8f8669a1f7666501425263.tar.gz
This is a legitimate bug in our code caught by Rubinius.
MRI strangely just truncates.  I suppose that makes sense
coming from some systems.
Diffstat (limited to 'test')
-rw-r--r--test/test_wbuf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_wbuf.rb b/test/test_wbuf.rb
index a7c4587..0923eb0 100644
--- a/test/test_wbuf.rb
+++ b/test/test_wbuf.rb
@@ -33,7 +33,7 @@ class TestWbuf < Testcase
         if wait
           r = IO.select([b,done[0]], nil, nil, 5)
         end
-        b.read_nonblock((rand * 1024) + 666, buf)
+        b.read_nonblock((rand * 1024).to_i + 666, buf)
         wait = (r[0] & done).empty?
       rescue Errno::EAGAIN
         break