-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REST: Fix flaky mocha tests caused by AuthTest.js
Occasionally, mocha tests in the `mediawiki-quibble-apitests-vendor-php74` CI job fail with the following error: ``` { code: 'permission-denied', message: 'Access to resource is denied', context: { denial_reason: 'resource-protected' } } ``` I suspect this is due to tests in `AuthTest.js` protecting an item/property that is also used in other tests. `AuthTest.js` uses the `describeWithTestData()` helper function which in turn uses the `getItemId()` helper function which enable the reuse of a single Item across tests. Adding a `createNewItem` param to `describeWithTestData()` allows `AuthTest.js` to request that a new Item is created for its tests. Change-Id: I0ba157a6bffdf8facc9a99905ae9287e71f8d4e1
- Loading branch information
1 parent
2012bdd
commit d508850
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters