Skip to content

Commit ea78ac9

Browse files
committed
Remove seconds
Doesn't do anything and there is some issue Rails 6 in our tests.
1 parent e83b4af commit ea78ac9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/influxdb/rails/configuration.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ class ClientConfig
4040
org: nil,
4141
bucket: nil,
4242
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,
4646
precision: ::InfluxDB2::WritePrecision::MILLISECOND,
4747
retries: 0,
4848
async: true,
49-
max_retry_delay_ms: 10.seconds.to_i * 1000
49+
max_retry_delay_ms: 10 * 1000
5050
)
5151

5252
def initialize

spec/unit/configuration_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
describe "#open_timeout" do
2626
it "defaults to 5 seconds" do
27-
expect(subject.open_timeout).to eql(5.seconds)
27+
expect(subject.open_timeout).to eql(5)
2828
end
2929

3030
it "can be updated" do
@@ -37,7 +37,7 @@
3737

3838
describe "#write_timeout" do
3939
it "defaults to 5 seconds" do
40-
expect(subject.write_timeout).to eql(5.seconds)
40+
expect(subject.write_timeout).to eql(5)
4141
end
4242

4343
it "can be updated" do
@@ -50,7 +50,7 @@
5050

5151
describe "#read_timeout" do
5252
it "defaults to 60 seconds" do
53-
expect(subject.read_timeout).to eql(60.seconds)
53+
expect(subject.read_timeout).to eql(60)
5454
end
5555

5656
it "can be updated" do

0 commit comments

Comments
 (0)