diff options
author | Eric Wong <e@80x24.org> | 2023-12-29 17:50:18 +0000 |
---|---|---|
committer | Eric Wong <bofh@yhbt.net> | 2024-01-15 02:57:58 +0000 |
commit | 1ab622e60153840fdaa83cdbc01ba2dce1794c21 (patch) | |
tree | f8f2355f71e50edaf016cf5d9c6b984d8ff8e4f2 /test/test_last_data_recv.rb | |
parent | 4dcd2caa9d7691d6a4f1d3fc0a0a4b54ac6fad6b (diff) | |
download | raindrops-1ab622e60153840fdaa83cdbc01ba2dce1794c21.tar.gz |
Diskspace and bandwidth are expensive, and we can make rack+aggregate optional in tests, too.
Diffstat (limited to 'test/test_last_data_recv.rb')
-rw-r--r-- | test/test_last_data_recv.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test_last_data_recv.rb b/test/test_last_data_recv.rb index ef84e05..b1a5ac6 100644 --- a/test/test_last_data_recv.rb +++ b/test/test_last_data_recv.rb @@ -1,3 +1,9 @@ +begin + require 'aggregate' + have_aggregate = true +rescue LoadError => e + warn "W: #{e} skipping #{__FILE__}" +end require 'test/unit' require 'raindrops' require 'io/wait' @@ -40,4 +46,4 @@ class TestLastDataRecv < Test::Unit::TestCase assert_equal 1, s.raindrops_aggregate.size assert_raise(IO::WaitReadable) { s.accept_nonblock } end -end if RUBY_PLATFORM =~ /linux/ +end if RUBY_PLATFORM =~ /linux/ && have_aggregate |