Skip to content

Commit

Permalink
Remove force true
Browse files Browse the repository at this point in the history
  • Loading branch information
Nithriel committed Nov 13, 2024
1 parent b895eb4 commit 04985be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/routes/report/signatureVariants.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ describe('/reports/{REPORTID}/sigv', () => {
});

afterEach(async () => {
await db.models.signatureVariants.destroy({where: {ident: sigvUpdate.ident}, force: true});
await db.models.signatureVariants.destroy({where: {ident: sigvUpdate.ident}});
});

test('/{sigv} - 200 Success', async () => {
Expand Down Expand Up @@ -169,7 +169,7 @@ describe('/reports/{REPORTID}/sigv', () => {
});

afterEach(async () => {
await db.models.signatureVariants.destroy({where: {ident: sigvDelete.ident}, force: true});
await db.models.signatureVariants.destroy({where: {ident: sigvDelete.ident}});
});

test('/{sigv} - 204 No content', async () => {
Expand Down Expand Up @@ -201,7 +201,7 @@ describe('/reports/{REPORTID}/sigv', () => {
afterAll(async () => {
// delete newly created report and all of it's components
// indirectly by hard deleting newly created patient
report.destroy({force: true});
report.destroy();
});
});

Expand Down
2 changes: 0 additions & 2 deletions test/testSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ 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 04985be

Please sign in to comment.