Merge pull request #31494 from hongchaodeng/fix3

Automatic merge from submit-queue

fix EtcdTestClientServer leaking clients

Continued on https://github.com/kubernetes/kubernetes/pull/31390#discussion_r76360860
pull/6/head
Kubernetes Submit Queue 2016-09-07 10:14:37 -07:00 committed by GitHub
commit 542e5f9c5e
1 changed files with 3 additions and 2 deletions

View File

@ -27,8 +27,9 @@ import (
)
func TestPodLogValidates(t *testing.T) {
etcdStorage, _ := registrytest.NewEtcdStorage(t, "")
s, destroyFunc := generic.NewRawStorage(etcdStorage)
config, server := registrytest.NewEtcdStorage(t, "")
defer server.Terminate(t)
s, destroyFunc := generic.NewRawStorage(config)
defer destroyFunc()
store := &registry.Store{
Storage: s,