From 1df4a7eec4ac97b21a85983f131309795e63b8bc Mon Sep 17 00:00:00 2001 From: Geoff Hickey Date: Tue, 1 Aug 2017 16:52:12 -0400 Subject: [PATCH] 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(). --- libvirt_integration_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libvirt_integration_test.go b/libvirt_integration_test.go index 8e82456..d8d2e41 100644 --- a/libvirt_integration_test.go +++ b/libvirt_integration_test.go @@ -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