Skip to content

Commit

Permalink
Set retries
Browse files Browse the repository at this point in the history
  • Loading branch information
Nithriel committed Nov 13, 2024
1 parent d23940e commit b895eb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion config/jest/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@ module.exports = {
'<rootDir>/test/testSetup.js',
],
testTimeout: 100000,
testRetryTimes: 3,
};
2 changes: 2 additions & 0 deletions test/testSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ CONFIG.set('env', 'test');
const {managerUsername, bioinformaticianUsername} = CONFIG.get('testing');

beforeAll(async () => {
jest.retryTimes(5, {logErrorsBeforeRetry: true});

const [managerUser] = await db.models.user.findOrCreate({
where: {
username: managerUsername,
Expand Down

0 comments on commit b895eb4

Please sign in to comment.