Skip to content

Commit

Permalink
REST: Enable retries for flaky blocked user e2e test
Browse files Browse the repository at this point in the history
This enables retries for a test that appears to have issues similar to
the one addressed in If2c33f983f705b0026e3c60e26a61a24371b7bad.

Bug: T348849
Change-Id: Ica9ba2fea31e9ddef4783444f2e04563bb1d8352
  • Loading branch information
jakobw committed Oct 30, 2023
1 parent b5fa46f commit 48b9495
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 48b9495

Please sign in to comment.