Autocreate Download Folder in Test
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Sarah Jamie Lewis 2023-03-06 13:27:45 -08:00
parent 0139f7a5a9
commit 186a33deb6
1 changed files with 2 additions and 0 deletions

View File

@ -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