mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
fix EtcdTestClientServer leaking clients
This commit is contained in:
parent
610a978e48
commit
6ccf09886b
@ -27,8 +27,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestPodLogValidates(t *testing.T) {
|
func TestPodLogValidates(t *testing.T) {
|
||||||
etcdStorage, _ := registrytest.NewEtcdStorage(t, "")
|
config, server := registrytest.NewEtcdStorage(t, "")
|
||||||
s, destroyFunc := generic.NewRawStorage(etcdStorage)
|
defer server.Terminate(t)
|
||||||
|
s, destroyFunc := generic.NewRawStorage(config)
|
||||||
defer destroyFunc()
|
defer destroyFunc()
|
||||||
store := ®istry.Store{
|
store := ®istry.Store{
|
||||||
Storage: s,
|
Storage: s,
|
||||||
|
Loading…
Reference in New Issue
Block a user