Skip to content

Commit 725a051

Browse files
committed
fix CI failure
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 98e7d80 commit 725a051

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

circle.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ test:
1010
pre:
1111
# run analysis before tests
1212
- go vet ./...
13-
- test -z "$(golint ./... | tee /dev/stderr)"
13+
# set min_confidence > 0.8 to ignore "error strings should not be capitalized or end with punctuation or a newline"
14+
- test -z "$(golint -min_confidence 0.81 ./... | tee /dev/stderr)"
1415
- test -z "$(gofmt -s -l . | tee /dev/stderr)"

proxy/udp_proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func NewUDPProxy(frontendAddr, backendAddr *net.UDPAddr, ops ...func(*UDPProxy))
6565
frontendAddr: listener.LocalAddr().(*net.UDPAddr),
6666
backendAddr: backendAddr,
6767
connTrackTable: make(connTrackMap),
68-
Logger: &noopLogger{},
68+
Logger: &noopLogger{},
6969
}
7070

7171
for _, op := range ops {

tlsconfig/certpool_other.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ package tlsconfig
44

55
import (
66
"crypto/x509"
7-
87
)
98

109
// SystemCertPool returns an new empty cert pool,

tlsconfig/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ func TestConfigServerDefaultWithTLSMinimumModifier(t *testing.T) {
301301
})
302302

303303
if servDefault.MinVersion != tlsVersion {
304-
t.Fatalf("Unexpected min TLS version for default server TLS config: ", servDefault.MinVersion)
304+
t.Fatalf("Unexpected min TLS version for default server TLS config: %d", servDefault.MinVersion)
305305
}
306306
}
307307
}
@@ -320,7 +320,7 @@ func TestConfigClientDefaultWithTLSMinimumModifier(t *testing.T) {
320320
})
321321

322322
if clientDefault.MinVersion != tlsVersion {
323-
t.Fatalf("Unexpected min TLS version for default client TLS config: ", clientDefault.MinVersion)
323+
t.Fatalf("Unexpected min TLS version for default client TLS config: %d", clientDefault.MinVersion)
324324
}
325325
}
326326
}

0 commit comments

Comments
 (0)