diff options
author | Ben Kochie <superq@gmail.com> | 2020-02-27 11:59:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 11:59:02 +0100 |
commit | a7c31ff7ed0990545ed4cc62690fc53563ee8860 (patch) | |
tree | 79d5a7cab59cf8e1c5d2ebd2a60bd8a4c22b2c2c /https | |
parent | ef7c05816adcb0e8923defe34e97f6afcce0a939 (diff) | |
download | prometheus_node_collector-a7c31ff7ed0990545ed4cc62690fc53563ee8860.tar.bz2 prometheus_node_collector-a7c31ff7ed0990545ed4cc62690fc53563ee8860.tar.xz prometheus_node_collector-a7c31ff7ed0990545ed4cc62690fc53563ee8860.zip |
Enable golint (#1623)
* Enable golint in golangci-lint tests.
* Fix up minor linting issues.
Signed-off-by: Ben Kochie <superq@gmail.com>
Diffstat (limited to 'https')
-rw-r--r-- | https/tls_config_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/https/tls_config_test.go b/https/tls_config_test.go index 717f201..4b1b4e0 100644 --- a/https/tls_config_test.go +++ b/https/tls_config_test.go | |||
@@ -213,13 +213,13 @@ func TestConfigReloading(t *testing.T) { | |||
213 | 213 | ||
214 | err := TestClientConnection() | 214 | err := TestClientConnection() |
215 | if err == nil { | 215 | if err == nil { |
216 | recordConnectionError(errors.New("Connection accepted but should have failed.")) | 216 | recordConnectionError(errors.New("connection accepted but should have failed")) |
217 | } else { | 217 | } else { |
218 | swapFileContents(goodYAMLPath, badYAMLPath) | 218 | swapFileContents(goodYAMLPath, badYAMLPath) |
219 | defer swapFileContents(goodYAMLPath, badYAMLPath) | 219 | defer swapFileContents(goodYAMLPath, badYAMLPath) |
220 | err = TestClientConnection() | 220 | err = TestClientConnection() |
221 | if err != nil { | 221 | if err != nil { |
222 | recordConnectionError(errors.New("Connection failed but should have been accepted.")) | 222 | recordConnectionError(errors.New("connection failed but should have been accepted")) |
223 | } else { | 223 | } else { |
224 | 224 | ||
225 | recordConnectionError(nil) | 225 | recordConnectionError(nil) |