Merge pull request #36 from libp2p/bug/test-filepath
Use filepath package to be more windows friendly
This commit is contained in:
commit
81e3a5a703
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue