Fix flaky TestUploadDataConcurrent (#20445)
Этот коммит содержится в:
коммит произвёл
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)
|
||||
}
|
||||
}()
|
||||
|
||||
Ссылка в новой задаче
Block a user