Port Autodownload / Image Previews / Profile Image Experiment to Cwtch #501
|
@ -55,6 +55,7 @@ func TestFileSharing(t *testing.T) {
|
||||||
os.RemoveAll("cwtch.out.png.manifest")
|
os.RemoveAll("cwtch.out.png.manifest")
|
||||||
os.RemoveAll("storage")
|
os.RemoveAll("storage")
|
||||||
os.RemoveAll("tordir")
|
os.RemoveAll("tordir")
|
||||||
|
os.RemoveAll("./download_dir")
|
||||||
|
|
||||||
log.SetLevel(log.LevelDebug)
|
log.SetLevel(log.LevelDebug)
|
||||||
|
|
||||||
|
@ -128,6 +129,7 @@ func TestFileSharing(t *testing.T) {
|
||||||
settings.DownloadPath = "./download_dir"
|
settings.DownloadPath = "./download_dir"
|
||||||
os.RemoveAll(path.Join(settings.DownloadPath, "cwtch.png"))
|
os.RemoveAll(path.Join(settings.DownloadPath, "cwtch.png"))
|
||||||
os.RemoveAll(path.Join(settings.DownloadPath, "cwtch.png.manifest"))
|
os.RemoveAll(path.Join(settings.DownloadPath, "cwtch.png.manifest"))
|
||||||
|
os.MkdirAll(settings.DownloadPath, 0700)
|
||||||
settings.Experiments[constants.FileSharingExperiment] = true
|
settings.Experiments[constants.FileSharingExperiment] = true
|
||||||
// Turn Auto Downloading On... (Part of the Image Previews / Profile Images Experiment)
|
// Turn Auto Downloading On... (Part of the Image Previews / Profile Images Experiment)
|
||||||
settings.Experiments[constants.ImagePreviewsExperiment] = true
|
settings.Experiments[constants.ImagePreviewsExperiment] = true
|
||||||
|
|
Loading…
Reference in New Issue