diff --git a/repo/rest-api/tests/mocha/api-testing/AuthTest.js b/repo/rest-api/tests/mocha/api-testing/AuthTest.js index 60dce72d732..e485f1fc7e9 100644 --- a/repo/rest-api/tests/mocha/api-testing/AuthTest.js +++ b/repo/rest-api/tests/mocha/api-testing/AuthTest.js @@ -167,7 +167,10 @@ describe( 'Auth', () => { }, 'POST' ); } ); - it( 'cannot edit if blocked', async () => { + it( 'cannot edit if blocked', async function () { + // this test often hits a race condition where this request is made before the user is blocked + this.retries( 3 ); + const response = await newRequestBuilder().withUser( user ).makeRequest(); expect( response ).to.have.status( 403 ); } );