Skip to content

Commit

Permalink
cleaning out all configPath before running test
Browse files Browse the repository at this point in the history
Signed-off-by: Kosh <[email protected]>
  • Loading branch information
koshatul committed Nov 13, 2019
1 parent 5467a6b commit 77f9895
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pkg/docker/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,14 @@ func TestGetAuth(t *testing.T) {
},
},
} {
if tc.path == "" {
if err := os.RemoveAll(configPath); err != nil {
t.Fatal(err)
}
for _, cPath := range configPaths {
os.RemoveAll(cPath)
}
// if tc.path == "" {
// if err := os.RemoveAll(configPath); err != nil {
// t.Fatal(err)
// }
// }

t.Run(tc.name, func(t *testing.T) {
if tc.path != "" {
Expand Down

0 comments on commit 77f9895

Please sign in to comment.