Merge pull request #44 from digitalocean/gh/fix-compiler-warnings

fix a trio of compiler warnings
This commit is contained in:
Geoff Hickey 2017-08-01 17:24:15 -04:00 committed by GitHub
commit 85dc33f30e

View File

@ -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