Skip to content

Commit 37bf296

Browse files
test: race condition makes test fail randomly (#579)
1 parent 7608502 commit 37bf296

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/tests/services/has-many-dissociator.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ describe('service > has-many-dissociator', () => {
7070
beforeEach(() => Promise.all([
7171
LumberJackModel.deleteMany({}),
7272
TreeModel.deleteMany({}),
73+
]).then(() => Promise.all([
7374
loadFixture(LumberJackModel, [
7475
{
7576
_id: '41224d776a326fb40f000001',
@@ -87,7 +88,7 @@ describe('service > has-many-dissociator', () => {
8788
owners: ['41224d776a326fb40f000001', '41224d776a326fb40f000002'],
8889
},
8990
]),
90-
]));
91+
])));
9192

9293
it('should delete the document and the association with option delete=true', async () => {
9394
expect.assertions(3);

0 commit comments

Comments
 (0)