Skip to content

Commit fd0fa21

Browse files
committed
Use environment variable
1 parent 591f619 commit fd0fa21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/cluster_client_options_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def test_client_accepts_valid_node_configs
3838

3939
def test_client_accepts_valid_options
4040
assert_nothing_raised do
41-
build_another_client(timeout: 1.0)
41+
timeout = Float(ENV['TIMEOUT'] || 1.0)
42+
build_another_client(timeout: timeout)
4243
end
4344
end
4445

0 commit comments

Comments
 (0)