diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-01-06 02:32:23 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-01-06 02:35:42 -0800 |
commit | d3f4b01e9b15dc8f7dd71973d07380b98caa6d2e (patch) | |
tree | 18ecc124f454f6a2d622525ede81e8a5cc8200d7 | |
parent | 805d5cc33362cf92196b4ec1edf33b01b5c02746 (diff) | |
download | mogilefs-client-d3f4b01e9b15dc8f7dd71973d07380b98caa6d2e.tar.gz |
Since the test server sleeps forever, there's no harm in having a shorter timeout so our tests run faster (over twice as fast with `make -j').
-rw-r--r-- | test/test_backend.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_backend.rb b/test/test_backend.rb index 45fe3ac..b831370 100644 --- a/test/test_backend.rb +++ b/test/test_backend.rb @@ -136,8 +136,8 @@ class TestBackend < Test::Unit::TestCase def test_readable_eh_not_readable tmp = TempServer.new(Proc.new { |a,b| sleep }) - @backend = MogileFS::Backend.new :hosts => [ "127.0.0.1:#{tmp.port}" ] - + @backend = MogileFS::Backend.new(:hosts => [ "127.0.0.1:#{tmp.port}" ], + :timeout => 0.5) begin @backend.readable? rescue MogileFS::UnreadableSocketError => e |