diff --git a/cli/config/config_test.go b/cli/config/config_test.go index 9bd5c15e92..9af2490870 100644 --- a/cli/config/config_test.go +++ b/cli/config/config_test.go @@ -60,10 +60,7 @@ func TestMissingFile(t *testing.T) { } func TestSaveFileToDirs(t *testing.T) { - tmpHome := t.TempDir() - - tmpHome += "/.docker" - + tmpHome := filepath.Join(t.TempDir(), ".docker") config, err := Load(tmpHome) assert.NilError(t, err)