Skip to content

Commit

Permalink
test(transactions): fix bug with sharded transaction tests
Browse files Browse the repository at this point in the history
Fixes NODE-1927
  • Loading branch information
daprahamian committed Apr 10, 2019
1 parent a137d89 commit ec53029
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/functional/transactions_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,15 @@ function prepareDatabaseForSuite(suite, context) {
if (suite.data && Array.isArray(suite.data) && suite.data.length > 0) {
return coll.insert(suite.data, { w: 'majority' });
}
})
.then(() => {
return context.runForAllClients(client => {
return client
.db(context.dbName)
.collection(context.collectionName)
.distinct('x')
.catch(() => {});
});
});
}

Expand Down

0 comments on commit ec53029

Please sign in to comment.