diff --git a/cmd/image-builder/main_test.go b/cmd/image-builder/main_test.go index fcc8bad..ec745c3 100644 --- a/cmd/image-builder/main_test.go +++ b/cmd/image-builder/main_test.go @@ -102,18 +102,6 @@ func TestBadCmdErrorsNoExtraCobraNoise(t *testing.T) { assert.Equal(t, "", fakeStderr.String()) } -func TestListImagesOverrideDatadir(t *testing.T) { - restore := main.MockOsArgs([]string{"--datadir=/this/path/does/not/exist", "list-images"}) - defer restore() - - var fakeStdout bytes.Buffer - restore = main.MockOsStdout(&fakeStdout) - defer restore() - - err := main.Run() - assert.EqualError(t, err, `no repositories found in the given paths: [/this/path/does/not/exist]`) -} - func TestListImagesErrorsOnExtraArgs(t *testing.T) { restore := main.MockNewRepoRegistry(testrepos.New) defer restore()