correct the expected value in plugintest

This commit is contained in:
jianglingxia 2018-02-25 15:14:55 +08:00
parent be2e702844
commit a199d283fb

View File

@ -37,7 +37,7 @@ func TestSpecSourceConverters(t *testing.T) {
t.Errorf("Unexpected nil EmptyDir: %#v", converted) t.Errorf("Unexpected nil EmptyDir: %#v", converted)
} }
if v.Name != converted.Name() { 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{ pv := &v1.PersistentVolume{
@ -52,7 +52,7 @@ func TestSpecSourceConverters(t *testing.T) {
t.Errorf("Unexpected nil AWSElasticBlockStore: %#v", converted) t.Errorf("Unexpected nil AWSElasticBlockStore: %#v", converted)
} }
if pv.Name != converted.Name() { 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)
} }
} }