From 4e9dcf3da536a9b956eb092fe9dbc5b2081cfb9d Mon Sep 17 00:00:00 2001 From: Cao Shufeng Date: Tue, 28 Mar 2017 05:36:33 -0400 Subject: [PATCH] delete etcd socket file for unit tests This change clean up the environment for etcd3 unit test. Without this change, "make test" will leave some socket files in workspace. And these socket files make hack/verify-generated-protobuf.sh fails. --- staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go b/staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go index f0ad8de8a9f..f6a335b060a 100644 --- a/staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go +++ b/staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go @@ -692,6 +692,7 @@ func testPropogateStore(ctx context.Context, t *testing.T, store *store, obj *ex func TestPrefix(t *testing.T) { codec := apitesting.TestCodec(codecs, examplev1.SchemeGroupVersion) cluster := integration.NewClusterV3(t, &integration.ClusterConfig{Size: 1}) + defer cluster.Terminate(t) transformer := prefixTransformer{prefix: []byte("test!")} testcases := map[string]string{ "custom/prefix": "/custom/prefix",