From d31792314331a12eda8370a7c0fe0d43b14aab92 Mon Sep 17 00:00:00 2001 From: Claudio Costa Date: Mon, 13 Jun 2022 09:52:10 +0200 Subject: [PATCH] Fix flaky TestUploadDataConcurrent (#20445) --- app/upload_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/upload_test.go b/app/upload_test.go index 26530f2b3a..ffec8c803b 100644 --- a/app/upload_test.go +++ b/app/upload_test.go @@ -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) } }()