Fix flaky TestUploadDataConcurrent (#20445)

Этот коммит содержится в:
Claudio Costa
2022-06-13 09:52:10 +02:00
коммит произвёл GitHub
родитель 39991d236b
Коммит d317923143

Просмотреть файл

@@ -270,7 +270,7 @@ func TestUploadDataConcurrent(t *testing.T) {
}
u := *us
_, err := th.App.UploadData(th.Context, &u, rd)
if err != nil && err.Id == "app.upload.upload_data.concurrent.app_error" {
if err != nil {
atomic.AddInt32(&nErrs, 1)
}
}()
@@ -294,7 +294,7 @@ func TestUploadDataConcurrent(t *testing.T) {
u := *us
u.FileOffset = 5 * 1024 * 1024
_, err := th.App.UploadData(th.Context, &u, rd)
if err != nil && err.Id == "app.upload.upload_data.concurrent.app_error" {
if err != nil {
atomic.AddInt32(&nErrs, 1)
}
}()