add easy to use dynamic client
This commit is contained in:
@@ -686,9 +686,13 @@ func TestOrphanDependentsFailure(t *testing.T) {
|
||||
},
|
||||
}
|
||||
err := gc.orphanDependents(objectReference{}, dependents)
|
||||
expected := `the server reported a conflict (patch pods pod)`
|
||||
expected := `the server reported a conflict`
|
||||
if err == nil || !strings.Contains(err.Error(), expected) {
|
||||
t.Errorf("expected error contains text %s, got %v", expected, err)
|
||||
if err != nil {
|
||||
t.Errorf("expected error contains text %q, got %q", expected, err.Error())
|
||||
} else {
|
||||
t.Errorf("expected error contains text %q, got nil", expected)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user