Make GoLinter happy

This commit is contained in:
Winni Neessen 2021-09-21 11:26:48 +02:00
parent 5cc2477657
commit 15e1aed098
Signed by: wneessen
GPG key ID: 385AC9889632126E
2 changed files with 1 additions and 1 deletions

View file

@ -17,7 +17,6 @@ lint_task:
build_task:
modules_cache:
fingerprint_script: cat go.sum
folder: $GOPATH/pkg/mod
get_script: go get github.com/wneessen/go-hibp
build_script: go build github.com/wneessen/go-hibp

View file

@ -18,6 +18,7 @@ func TestNewWithHttpTimeout(t *testing.T) {
hc := New(WithHttpTimeout(time.Second * 10))
if hc == nil {
t.Errorf("hibp client creation failed")
return
}
if hc.to != time.Second*10 {
t.Errorf("hibp client timeout option was not set properly. Expected %d, got: %d",