mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
massive changes
This commit is contained in:
@@ -32,7 +32,7 @@ func TestNewClient(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
client := &Fake{}
|
||||
client.AddReactor("*", "*", ObjectReaction(o, latest.RESTMapper))
|
||||
client.AddReactor("*", "*", ObjectReaction(o, latest.GroupOrDie("").RESTMapper))
|
||||
list, err := client.Services("test").List(labels.Everything())
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
@@ -63,7 +63,7 @@ func TestErrors(t *testing.T) {
|
||||
},
|
||||
})
|
||||
client := &Fake{}
|
||||
client.AddReactor("*", "*", ObjectReaction(o, latest.RESTMapper))
|
||||
client.AddReactor("*", "*", ObjectReaction(o, latest.GroupOrDie("").RESTMapper))
|
||||
_, err := client.Services("test").List(labels.Everything())
|
||||
if !errors.IsNotFound(err) {
|
||||
t.Fatalf("unexpected error: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user