diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_client_expire.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/test_client_expire.rb b/test/test_client_expire.rb index bdf0cb4..4f20803 100644 --- a/test/test_client_expire.rb +++ b/test/test_client_expire.rb @@ -149,9 +149,17 @@ class TestClientExpire < Testcase Process.waitpid2(_pid) end end + + # this seems to be needed in Debian GNU/kFreeBSD + linux = !!(RUBY_PLATFORM =~ /linux/) + sleep(1) unless linux + [ f, s ].each do |io| assert_raises(Errno::EPIPE,Errno::ECONNRESET) do - req.each_byte { |b| io.write(b.chr) } + req.each_byte do |b| + io.write(b.chr) + sleep(0.01) unless linux + end end io.close end |