clean up unused var containerCache

This commit is contained in:
RyderXia
2020-07-21 16:57:36 +08:00
parent adabcc31f0
commit 2214117cd1
2 changed files with 2 additions and 5 deletions

View File

@@ -650,9 +650,7 @@ func TestRelistIPChange(t *testing.T) {
}
func TestRunningPodAndContainerCount(t *testing.T) {
fakeRuntime := &containertest.FakeRuntime{}
runtimeCache, _ := kubecontainer.NewRuntimeCache(fakeRuntime)
metrics.Register(runtimeCache)
metrics.Register()
testPleg := newTestGenericPLEG()
pleg, runtime := testPleg.pleg, testPleg.runtime