File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
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 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