Combine loaderImpl and fileLoader.

This commit is contained in:
Jeffrey Regan
2018-07-25 17:23:04 -07:00
parent 4569a09d54
commit 9e5374e725
8 changed files with 57 additions and 85 deletions

View File

@@ -136,8 +136,7 @@ func TestConstructConfigMap(t *testing.T) {
// TODO: all tests should use a FakeFs
fSys := fs.MakeRealFS()
f := NewConfigMapFactory(fSys,
loader.NewLoader(loader.NewFileLoader(fSys)))
f := NewConfigMapFactory(fSys, loader.NewFileLoader(fSys))
for _, tc := range testCases {
cm, err := f.MakeConfigMap(&tc.input)
if err != nil {