fix a trio of compiler warnings
Fix three compiler warnings caused by using format strings in calls to testing.Error() and Fatal(). Switched to Errorf() and Fatalf().
This commit is contained in:
parent
975d5a18d5
commit
1df4a7eec4
@ -88,19 +88,19 @@ func TestSecretsIntegration(t *testing.T) {
|
|||||||
wantLen := 1
|
wantLen := 1
|
||||||
gotLen := len(secrets)
|
gotLen := len(secrets)
|
||||||
if gotLen != wantLen {
|
if gotLen != wantLen {
|
||||||
t.Fatal("expected %d secrets, got %d", wantLen, gotLen)
|
t.Fatalf("expected %d secrets, got %d", wantLen, gotLen)
|
||||||
}
|
}
|
||||||
|
|
||||||
s := secrets[0]
|
s := secrets[0]
|
||||||
|
|
||||||
wantType := SecretUsageTypeVolume
|
wantType := SecretUsageTypeVolume
|
||||||
if s.UsageType != wantType {
|
if s.UsageType != wantType {
|
||||||
t.Error("expected usage type: %d, got %d", wantType, s.UsageType)
|
t.Errorf("expected usage type: %d, got %d", wantType, s.UsageType)
|
||||||
}
|
}
|
||||||
|
|
||||||
wantID := "/tmp"
|
wantID := "/tmp"
|
||||||
if s.UsageID != wantID {
|
if s.UsageID != wantID {
|
||||||
t.Error("expected usage id: %q, got %q", wantID, s.UsageID)
|
t.Errorf("expected usage id: %q, got %q", wantID, s.UsageID)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 19fdc2f2-fa64-46f3-bacf-42a8aafca6dd
|
// 19fdc2f2-fa64-46f3-bacf-42a8aafca6dd
|
||||||
|
Loading…
Reference in New Issue
Block a user