Skip to content

Commit ec53029

Browse files
committed
test(transactions): fix bug with sharded transaction tests
Fixes NODE-1927
1 parent a137d89 commit ec53029

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/functional/transactions_tests.js

+9
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,15 @@ function prepareDatabaseForSuite(suite, context) {
301301
if (suite.data && Array.isArray(suite.data) && suite.data.length > 0) {
302302
return coll.insert(suite.data, { w: 'majority' });
303303
}
304+
})
305+
.then(() => {
306+
return context.runForAllClients(client => {
307+
return client
308+
.db(context.dbName)
309+
.collection(context.collectionName)
310+
.distinct('x')
311+
.catch(() => {});
312+
});
304313
});
305314
}
306315

0 commit comments

Comments
 (0)