From b901f5d1421caa552381392273d081bf94f58338 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 17 Jun 2020 14:51:16 +0200 Subject: [PATCH] TestSaveFileToDirs: use filepath.Join() Signed-off-by: Sebastiaan van Stijn --- cli/config/config_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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)