Dont return raw etcd errors
This commit is contained in:
@@ -153,7 +153,7 @@ func TestCreateRegistryError(t *testing.T) {
|
||||
|
||||
pod := validNewPod()
|
||||
_, err := storage.Create(api.NewDefaultContext(), pod)
|
||||
if err != fakeEtcdClient.Err {
|
||||
if !errors.IsInternalServerError(err) {
|
||||
t.Fatalf("unexpected error: %v", err)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user