Merge pull request #47302 from CaoShuFeng/leak_socket_file

Automatic merge from submit-queue (batch tested with PRs 47302, 47389, 47402, 47468, 47459)

remove leaked socket file in unit test

Fixes #47301


**Release note**:

```
NONE
```
This commit is contained in:
Kubernetes Submit Queue 2017-06-13 23:37:41 -07:00 committed by GitHub
commit 4319f0fe5e

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"},
}