diff --git a/pkg/registry/pod/etcd/etcd_test.go b/pkg/registry/pod/etcd/etcd_test.go index 5bd7dbcec7d..f06b9fc829c 100644 --- a/pkg/registry/pod/etcd/etcd_test.go +++ b/pkg/registry/pod/etcd/etcd_test.go @@ -847,6 +847,8 @@ func TestEtcdCreate(t *testing.T) { } } +// Ensure that when scheduler creates a binding for a pod that has already been deleted +// by the API server, API server returns not-found error. func TestEtcdCreateBindingNoPod(t *testing.T) { registry, bindingRegistry, fakeClient, _ := newStorage(t) ctx := api.NewDefaultContext()