From b7e037140155fd3de57e874e24106f8df6a14ed3 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Thu, 20 Jan 2022 13:38:46 -0800 Subject: [PATCH] Fixup data-dir locations for integ tests --- testing/cwtch_peer_server_integration_test.go | 2 +- testing/filesharing/file_sharing_integration_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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") }