File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ def post(url, data)
40
40
41
41
private
42
42
43
+ # rubocop:disable Metrics/CyclomaticComplexity
44
+ # rubocop:disable Metrics/PerceivedComplexity
43
45
def connect_with_retry
44
46
delay = config . initial_delay
45
47
retry_count = 0
@@ -71,6 +73,8 @@ def connect_with_retry
71
73
retry
72
74
end
73
75
end
76
+ # rubocop:enable Metrics/CyclomaticComplexity
77
+ # rubocop:enable Metrics/PerceivedComplexity
74
78
75
79
def do_request ( http , req , data = nil )
76
80
req . basic_auth config . username , config . password if basic_auth?
Original file line number Diff line number Diff line change 47
47
raise SocketError , "simulate getaddrinfo error"
48
48
end
49
49
50
- error = InfluxDB ::ConnectionError . new "Tried 0 times to reconnect but failed."
51
- expect { subject . send ( :connect_with_retry ) } . to raise_error ( InfluxDB ::ConnectionError )
50
+ expect { subject . send ( :connect_with_retry ) } . to raise_error ( InfluxDB ::ConnectionError , "Tried 0 times to reconnect but failed." )
52
51
end
53
52
end
54
53
You can’t perform that action at this time.
0 commit comments