File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ def post(url, data)
4040
4141 private
4242
43+ # rubocop:disable Metrics/CyclomaticComplexity
4344 def connect_with_retry
4445 delay = config . initial_delay
4546 retry_count = 0
@@ -71,6 +72,7 @@ def connect_with_retry
7172 retry
7273 end
7374 end
75+ # rubocop:enable Metrics/CyclomaticComplexity
7476
7577 def do_request ( http , req , data = nil )
7678 req . basic_auth config . username , config . password if basic_auth?
Original file line number Diff line number Diff line change 4848 end
4949
5050 error = InfluxDB ::ConnectionError . new "Tried 0 times to reconnect but failed."
51- expect { subject . send ( :connect_with_retry ) } . to raise_error ( InfluxDB :: ConnectionError )
51+ expect { subject . send ( :connect_with_retry ) } . to raise_error ( error )
5252 end
5353 end
5454
You can’t perform that action at this time.
0 commit comments