Skip to content

Commit 9bb4156

Browse files
committed
Try increasing timeouts for Travis.
1 parent b24524f commit 9bb4156

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.travis.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@ gemfile:
1616
- .travis/Gemfile
1717

1818
env:
19-
- conn=ruby REDIS_BRANCH=2.6
20-
- conn=hiredis REDIS_BRANCH=2.6
21-
- conn=synchrony REDIS_BRANCH=2.6
22-
- conn=ruby REDIS_BRANCH=2.8
23-
- conn=ruby REDIS_BRANCH=unstable
19+
global:
20+
- TIMEOUT=1
21+
matrix:
22+
- conn=ruby REDIS_BRANCH=2.6
23+
- conn=hiredis REDIS_BRANCH=2.6
24+
- conn=synchrony REDIS_BRANCH=2.6
25+
- conn=ruby REDIS_BRANCH=2.8
26+
- conn=ruby REDIS_BRANCH=unstable
2427

2528
matrix:
2629
exclude:

test/helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
require "support/connection/#{ENV["conn"]}"
2323

2424
PORT = 6381
25-
OPTIONS = {:port => PORT, :db => 15, :timeout => 0.1}
25+
OPTIONS = {:port => PORT, :db => 15, :timeout => Float(ENV["TIMEOUT"] || 0.1)}
2626
NODES = ["redis://127.0.0.1:#{PORT}/15"]
2727

2828
def init(redis)

0 commit comments

Comments
 (0)