From 3430c5766d7f6cfb5da750e2d9dd1f7adc354301 Mon Sep 17 00:00:00 2001 From: Cole Brown Date: Thu, 29 Nov 2018 14:02:28 -0500 Subject: [PATCH] Use filepath package to be more windows friendly --- test/utils.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/utils.go b/test/utils.go index 32d4db9..0794112 100644 --- a/test/utils.go +++ b/test/utils.go @@ -7,6 +7,7 @@ import ( "fmt" "io/ioutil" "os" + "path/filepath" "testing" cid "github.com/ipfs/go-cid" @@ -26,8 +27,8 @@ func createTempDir(t *testing.T) (string, string, func()) { if err != nil { t.Fatalf("creating temp dir: %s", err) } - daemonPath := dir + "/daemon.sock" - clientPath := dir + "/client.sock" + daemonPath := filepath.Join(dir, "daemon.sock") + clientPath := filepath.Join(dir, "client.sock") closer := func() { os.RemoveAll(dir) }