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:
Geoff Hickey 2017-08-01 16:52:12 -04:00
parent 975d5a18d5
commit 1df4a7eec4

View File

@ -88,19 +88,19 @@ func TestSecretsIntegration(t *testing.T) {
wantLen := 1
gotLen := len(secrets)
if gotLen != wantLen {
t.Fatal("expected %d secrets, got %d", wantLen, gotLen)
t.Fatalf("expected %d secrets, got %d", wantLen, gotLen)
}
s := secrets[0]
wantType := SecretUsageTypeVolume
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"
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