about summary refs log tree commit homepage
path: root/test/test_watcher.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-03-15 23:39:46 +0000
committerEric Wong <e@80x24.org>2017-03-15 23:41:44 +0000
commit8d9f163a159a1366a86ba166142b4f6f3fd38083 (patch)
tree2d9b967f25dbf6e5acd7999f44c3cedb3cb437fd /test/test_watcher.rb
parent93e936d9a1586d25c338c6974027d6aa70960e1b (diff)
downloadraindrops-8d9f163a159a1366a86ba166142b4f6f3fd38083.tar.gz
While we're at it, improve the description of other skips.
Diffstat (limited to 'test/test_watcher.rb')
-rw-r--r--test/test_watcher.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_watcher.rb b/test/test_watcher.rb
index 70e8e75..d1e4d15 100644
--- a/test/test_watcher.rb
+++ b/test/test_watcher.rb
@@ -2,6 +2,11 @@
 require "test/unit"
 require "rack"
 require "raindrops"
+begin
+  require 'aggregate'
+rescue LoadError => e
+  warn "W: #{e} skipping #{__FILE__}"
+end
 
 class TestWatcher < Test::Unit::TestCase
   TEST_ADDR = ENV['UNICORN_TEST_ADDR'] || '127.0.0.1'
@@ -178,4 +183,4 @@ class TestWatcher < Test::Unit::TestCase
     assert_equal queued_before, headers["X-Last-Peak-At"], "should not change"
     assert_equal start, headers["X-First-Peak-At"]
   end
-end if RUBY_PLATFORM =~ /linux/
+end if RUBY_PLATFORM =~ /linux/ && defined?(Aggregate)