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)
40
40
41
41
private
42
42
43
+ # rubocop:disable Metrics/CyclomaticComplexity
43
44
def connect_with_retry
44
45
delay = config . initial_delay
45
46
retry_count = 0
@@ -71,6 +72,7 @@ def connect_with_retry
71
72
retry
72
73
end
73
74
end
75
+ # rubocop:enable Metrics/CyclomaticComplexity
74
76
75
77
def do_request ( http , req , data = nil )
76
78
req . basic_auth config . username , config . password if basic_auth?
Original file line number Diff line number Diff line change 48
48
end
49
49
50
50
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 )
52
52
end
53
53
end
54
54
You can’t perform that action at this time.
0 commit comments