Address linter issues

Log:

integration/metrics_test.go:139:4: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck)
			t.Fatalf(err.Error())
			^
integration/clientv3/lease/lease_test.go:410:4: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck)
			t.Fatalf(errMsg)

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
This commit is contained in:
Chun-Hung Tseng 2024-08-29 22:16:48 +02:00
parent 077817058f
commit a69829bae3
No known key found for this signature in database
GPG Key ID: EF93C20F55FB48BB
2 changed files with 2 additions and 2 deletions

View File

@ -407,7 +407,7 @@ func TestLeaseRevokeNewAfterClose(t *testing.T) {
t.Fatal("le.Revoke took too long")
case errMsg := <-errMsgCh:
if errMsg != "" {
t.Fatalf(errMsg)
t.Fatalf("%v", errMsg)
}
}
}

View File

@ -136,7 +136,7 @@ func testMetricDbSizeDefrag(t *testing.T, name string) {
}
retry++
if retry >= maxRetry {
t.Fatalf(err.Error())
t.Fatalf("%v", err.Error())
}
}