Commit fb103c93 authored by Christopher Schinnerl's avatar Christopher Schinnerl

randomly wait a second before cancelling the download

parent fb375923
Pipeline #52439538 passed with stages
in 42 minutes and 47 seconds
......@@ -907,6 +907,9 @@ func testCancelAsyncDownload(t *testing.T, tg *siatest.TestGroup) {
if err != nil {
t.Fatal(err)
}
// Sometimes wait a second to not always cancel the download right
// away.
time.Sleep(time.Second * time.Duration(fastrand.Intn(2)))
// Cancel the download.
if err := renter.RenterCancelDownloadPost(cancelID); err != nil {
t.Fatal(err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment