diff options
author | Eric Wong <e@80x24.org> | 2013-10-20 09:25:17 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2013-10-21 04:09:17 +0000 |
commit | 92172ac2c4e094cb2d8f8669a1f7666501425263 (patch) | |
tree | 545f6197baaeb5756cc91babec7ea7ae05d7f879 /test/test_wbuf.rb | |
parent | eece181d9f6462114fc59a15c9546d92f99a9499 (diff) | |
download | yahns-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/test_wbuf.rb')
-rw-r--r-- | test/test_wbuf.rb | 2 |
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 |