Skip to content

Commit be30dc3

Browse files
authored
test: prevent freaky failure for CI that occurring RedisClient::ReadTimeoutError (#102)
1 parent ab7a574 commit be30dc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/redis_client/test_cluster.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ def test_blocking_call
6161
@client.call(*%w[RPUSH foo hello])
6262
@client.call(*%w[RPUSH foo world])
6363
wait_for_replication
64-
client_side_timeout = 0.2
65-
server_side_timeout = 0.1
64+
client_side_timeout = 1.0
65+
server_side_timeout = 0.5
6666
assert_equal(%w[foo world], @client.blocking_call(client_side_timeout, 'BRPOP', 'foo', server_side_timeout), 'Case: 1st')
6767
assert_equal(%w[foo hello], @client.blocking_call(client_side_timeout, 'BRPOP', 'foo', server_side_timeout), 'Case: 2nd')
6868
assert_nil(@client.blocking_call(client_side_timeout, 'BRPOP', 'foo', server_side_timeout), 'Case: 3rd')

0 commit comments

Comments
 (0)