mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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:
parent
077817058f
commit
a69829bae3
@ -407,7 +407,7 @@ func TestLeaseRevokeNewAfterClose(t *testing.T) {
|
|||||||
t.Fatal("le.Revoke took too long")
|
t.Fatal("le.Revoke took too long")
|
||||||
case errMsg := <-errMsgCh:
|
case errMsg := <-errMsgCh:
|
||||||
if errMsg != "" {
|
if errMsg != "" {
|
||||||
t.Fatalf(errMsg)
|
t.Fatalf("%v", errMsg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ func testMetricDbSizeDefrag(t *testing.T, name string) {
|
|||||||
}
|
}
|
||||||
retry++
|
retry++
|
||||||
if retry >= maxRetry {
|
if retry >= maxRetry {
|
||||||
t.Fatalf(err.Error())
|
t.Fatalf("%v", err.Error())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user