diff --git a/pkg/volume/plugins_test.go b/pkg/volume/plugins_test.go index fc780d6a2e1..167a47e6fa3 100644 --- a/pkg/volume/plugins_test.go +++ b/pkg/volume/plugins_test.go @@ -37,7 +37,7 @@ func TestSpecSourceConverters(t *testing.T) { t.Errorf("Unexpected nil EmptyDir: %#v", converted) } if v.Name != converted.Name() { - t.Errorf("Expected %v but got %v", v.Name, converted.Name()) + t.Errorf("Expected %v but got %v", converted.Name(), v.Name) } pv := &v1.PersistentVolume{ @@ -52,7 +52,7 @@ func TestSpecSourceConverters(t *testing.T) { t.Errorf("Unexpected nil AWSElasticBlockStore: %#v", converted) } if pv.Name != converted.Name() { - t.Errorf("Expected %v but got %v", pv.Name, converted.Name()) + t.Errorf("Expected %v but got %v", converted.Name(), pv.Name) } }