Dont return raw etcd errors

This commit is contained in:
nikhiljindal
2015-06-22 18:19:18 -07:00
parent 764d34d363
commit 4b7f7ce535
8 changed files with 59 additions and 22 deletions

View File

@@ -116,7 +116,7 @@ func TestCreateRegistryError(t *testing.T) {
resourcequota := validNewResourceQuota()
_, err := storage.Create(api.NewDefaultContext(), resourcequota)
if err != fakeEtcdClient.Err {
if !errors.IsInternalServerError(err) {
t.Fatalf("unexpected error: %v", err)
}
}