Add missing Cleanup() calls in kubelet tests.

Possibly related to #45803 and #46204.
This commit is contained in:
Rohit Agarwal 2017-05-25 13:19:56 -07:00
parent 0f5cc4027f
commit 2b594d6197
2 changed files with 2 additions and 0 deletions

View File

@ -112,6 +112,7 @@ func TestParseResolvConf(t *testing.T) {
func TestComposeDNSSearch(t *testing.T) {
testKubelet := newTestKubelet(t, false /* controllerAttachDetachEnabled */)
defer testKubelet.Cleanup()
kubelet := testKubelet.kubelet
recorder := record.NewFakeRecorder(20)

View File

@ -33,6 +33,7 @@ import (
func TestListVolumesForPod(t *testing.T) {
testKubelet := newTestKubelet(t, false /* controllerAttachDetachEnabled */)
defer testKubelet.Cleanup()
kubelet := testKubelet.kubelet
pod := podWithUidNameNsSpec("12345678", "foo", "test", v1.PodSpec{