diff --git a/testing/cwtch_peer_server_integration_test.go b/testing/cwtch_peer_server_integration_test.go index 3ef8239..65f38ee 100644 --- a/testing/cwtch_peer_server_integration_test.go +++ b/testing/cwtch_peer_server_integration_test.go @@ -81,7 +81,7 @@ func TestCwtchPeerIntegration(t *testing.T) { } torDataDir := "" - if torDataDir, err = ioutil.TempDir(path.Join("..", "testing"), "data-dir-"); err != nil { + if torDataDir, err = ioutil.TempDir(dataDir, "data-dir-"); err != nil { t.Fatalf("could not create data dir") } diff --git a/testing/filesharing/file_sharing_integration_test.go b/testing/filesharing/file_sharing_integration_test.go index 2d07c78..a7d3f2e 100644 --- a/testing/filesharing/file_sharing_integration_test.go +++ b/testing/filesharing/file_sharing_integration_test.go @@ -77,7 +77,7 @@ func TestFileSharing(t *testing.T) { } torDataDir := "" - if torDataDir, err = ioutil.TempDir(path.Join("..", "testing"), "data-dir-"); err != nil { + if torDataDir, err = ioutil.TempDir(dataDir, "data-dir-"); err != nil { t.Fatalf("could not create data dir") }