From bb43e59e562095fed279530e637015517a2d164e Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Wed, 30 Oct 2019 20:31:39 +0100 Subject: [PATCH] Fix broken importer tests on compose --- compose/importer/main_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compose/importer/main_test.go b/compose/importer/main_test.go index f4f599ed4..341842f6b 100644 --- a/compose/importer/main_test.go +++ b/compose/importer/main_test.go @@ -41,6 +41,10 @@ func resetMocks() { imp = NewImporter(nil, nil, nil, nil, nil, pi, st) + // namespaces does not get initialized in the standard flow + // if namespace finder is not present + imp.namespaces = NewNamespaceImporter(imp) + } func impFixTester(t *testing.T, name string, tester interface{}) {