remove leaked socket file in unit test

This commit is contained in:
Cao Shufeng 2017-06-11 14:07:32 +08:00
parent 67730881a6
commit 2c19b9e143

View File

@ -1837,7 +1837,8 @@ func newTestGenericStoreRegistry(t *testing.T, scheme *runtime.Scheme, hasCacheE
func TestFinalizeDelete(t *testing.T) {
// Verify that it returns the expected Status.
_, s := NewTestGenericStoreRegistry(t)
destroyFunc, s := NewTestGenericStoreRegistry(t)
defer destroyFunc()
obj := &example.Pod{
ObjectMeta: metav1.ObjectMeta{Name: "foo", UID: "random-uid"},
}