Amend the error messages in install_test.go

pull/6/head
jianglingxia 2017-10-24 16:42:27 +08:00
parent 9807360fe3
commit 3e65a2f716
1 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ func TestResourceVersioner(t *testing.T) {
t.Fatalf("unexpected error: %v", err)
}
if version != "10" {
t.Errorf("unexpected version %v", version)
t.Errorf("version = %v, want 10", version)
}
clusterList := federation.ClusterList{ListMeta: metav1.ListMeta{ResourceVersion: "10"}}
@ -45,7 +45,7 @@ func TestResourceVersioner(t *testing.T) {
t.Fatalf("unexpected error: %v", err)
}
if version != "10" {
t.Errorf("unexpected version %v", version)
t.Errorf("version = %v, want 10", version)
}
}
@ -104,7 +104,7 @@ func TestRESTMapper(t *testing.T) {
interfaces, _ := legacyscheme.Registry.GroupOrDie(federation.GroupName).InterfacesFor(version)
if mapping.ObjectConvertor != interfaces.ObjectConvertor {
t.Errorf("unexpected: %#v, expected: %#v", mapping, interfaces)
t.Errorf("mapping: %#v, interfaces: %#v", mapping, interfaces)
}
rc := &federation.Cluster{ObjectMeta: metav1.ObjectMeta{Name: "foo"}}