From 186a33deb6250a15077c421d60c01202a99ed6cb Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Mon, 6 Mar 2023 13:27:45 -0800 Subject: [PATCH] Autocreate Download Folder in Test --- testing/autodownload/file_sharing_integration_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/autodownload/file_sharing_integration_test.go b/testing/autodownload/file_sharing_integration_test.go index 94feda7..549db81 100644 --- a/testing/autodownload/file_sharing_integration_test.go +++ b/testing/autodownload/file_sharing_integration_test.go @@ -55,6 +55,7 @@ func TestFileSharing(t *testing.T) { os.RemoveAll("cwtch.out.png.manifest") os.RemoveAll("storage") os.RemoveAll("tordir") + os.RemoveAll("./download_dir") log.SetLevel(log.LevelDebug) @@ -128,6 +129,7 @@ func TestFileSharing(t *testing.T) { settings.DownloadPath = "./download_dir" os.RemoveAll(path.Join(settings.DownloadPath, "cwtch.png")) os.RemoveAll(path.Join(settings.DownloadPath, "cwtch.png.manifest")) + os.MkdirAll(settings.DownloadPath, 0700) settings.Experiments[constants.FileSharingExperiment] = true // Turn Auto Downloading On... (Part of the Image Previews / Profile Images Experiment) settings.Experiments[constants.ImagePreviewsExperiment] = true