File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -40,13 +40,13 @@ class ClientConfig
40
40
org : nil ,
41
41
bucket : nil ,
42
42
use_ssl : true ,
43
- open_timeout : 5 . seconds ,
44
- write_timeout : 5 . seconds ,
45
- read_timeout : 60 . seconds ,
43
+ open_timeout : 5 ,
44
+ write_timeout : 5 ,
45
+ read_timeout : 60 ,
46
46
precision : ::InfluxDB2 ::WritePrecision ::MILLISECOND ,
47
47
retries : 0 ,
48
48
async : true ,
49
- max_retry_delay_ms : 10 . seconds . to_i * 1000
49
+ max_retry_delay_ms : 10 * 1000
50
50
)
51
51
52
52
def initialize
Original file line number Diff line number Diff line change 24
24
25
25
describe "#open_timeout" do
26
26
it "defaults to 5 seconds" do
27
- expect ( subject . open_timeout ) . to eql ( 5 . seconds )
27
+ expect ( subject . open_timeout ) . to eql ( 5 )
28
28
end
29
29
30
30
it "can be updated" do
37
37
38
38
describe "#write_timeout" do
39
39
it "defaults to 5 seconds" do
40
- expect ( subject . write_timeout ) . to eql ( 5 . seconds )
40
+ expect ( subject . write_timeout ) . to eql ( 5 )
41
41
end
42
42
43
43
it "can be updated" do
50
50
51
51
describe "#read_timeout" do
52
52
it "defaults to 60 seconds" do
53
- expect ( subject . read_timeout ) . to eql ( 60 . seconds )
53
+ expect ( subject . read_timeout ) . to eql ( 60 )
54
54
end
55
55
56
56
it "can be updated" do
You can’t perform that action at this time.
0 commit comments