Permalink
Browse files

Decrease default timeout in tests

  • Loading branch information...
1 parent 731e6f8 commit 0e4a2a4343d1f50f91052cdcd945ead1d455e87f @pietern pietern committed Apr 16, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 test/helper.rb
  2. +1 −1 test/publish_subscribe_test.rb
View
2 test/helper.rb
@@ -10,7 +10,7 @@
end
PORT = 6381
-OPTIONS = {:port => PORT, :db => 15, :timeout => 3}
+OPTIONS = {:port => PORT, :db => 15, :timeout => 0.1}
NODES = ["redis://127.0.0.1:#{PORT}/15"]
def init(redis)
View
2 test/publish_subscribe_test.rb
@@ -139,7 +139,7 @@
test "SUBSCRIBE past a timeout" do |r|
# For some reason, a thread here doesn't reproduce the issue.
- sleep = %{sleep #{OPTIONS[:timeout] + 1}}
+ sleep = %{sleep #{OPTIONS[:timeout] * 2}}
publish = %{echo "publish foo bar\r\n" | nc localhost #{OPTIONS[:port]}}
cmd = [sleep, publish].join("; ")

0 comments on commit 0e4a2a4

Please sign in to comment.