Skip to content

Commit

Permalink
Merge "REST: Enable retries for flaky blocked user e2e test"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Oct 31, 2023
2 parents 0790afd + 48b9495 commit e764386
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion repo/rest-api/tests/mocha/api-testing/AuthTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
} );
Expand Down

0 comments on commit e764386

Please sign in to comment.