Skip to content

Commit 30f4f9b

Browse files
committed
Increase wait time in TestCleanup
2 is too small and thus racy.
1 parent 70d4a3f commit 30f4f9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ func TestCleanup(t *testing.T) {
268268
URL := string(doPOST(t, c, ts.URL+"/filedrop?store-secs=1", "text/plain", strings.NewReader(file)))
269269
splittenURL := strings.Split(URL, "/")
270270
UUID := splittenURL[len(splittenURL)-1]
271-
time.Sleep(2 * time.Second)
271+
time.Sleep(4 * time.Second)
272272

273273
_, err := os.Stat(filepath.Join(serv.Conf.StorageDir, UUID))
274274
if err == nil || !os.IsNotExist(err) {

0 commit comments

Comments
 (0)