Fix flaky TestFailUnpauseAndStops

This commit is contained in:
Michal Horejsek 2020-10-22 10:04:22 +02:00
parent 563b4889e3
commit 606b42a6e7
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
* Fix measurement of uploading attachments during transfer.
* GODT-827 Do not spam sentry with bad ID by integration test.
* GODT-700 Fix UTF-7 incompatibility.
* GODT-837 Fix flaky TestFailUnpauseAndStops.
### Changed
* Bump crypto version to v0.0.0-20200818122824-ed5d25e28db8

View File

@ -115,7 +115,7 @@ func TestFailUnpauseAndStops(t *testing.T) {
r.Nil(t, progress.updateCh)
r.True(t, progress.isStopped)
r.False(t, progress.IsPaused())
r.Eventually(t, progress.shouldStop, 2*time.Millisecond, time.Millisecond)
r.Eventually(t, progress.shouldStop, time.Second, 10*time.Millisecond)
}
func TestStopClosesUpdates(t *testing.T) {