Skip to content

Commit ef5fc83

Browse files
committed
test: filter topology, and set correct readConcernLevel
1 parent 1fd7c10 commit ef5fc83

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/functional/bulk.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -2032,11 +2032,11 @@ describe('Bulk', function () {
20322032
});
20332033

20342034
it('should abort ordered/unordered bulk operation writes', {
2035-
metadata: { requires: { mongodb: '>= 3.6', topology: ['replicaset', 'sharded'] } },
2035+
metadata: { requires: { mongodb: '>= 3.6', topology: ['replicaset'] } },
20362036
async test() {
20372037
const session = client.startSession();
20382038
session.startTransaction({
2039-
readConcern: { level: 'majority' },
2039+
readConcern: { level: 'local' },
20402040
writeConcern: { w: 'majority' }
20412041
});
20422042

@@ -2067,7 +2067,7 @@ describe('Bulk', function () {
20672067
});
20682068

20692069
it('should abort ordered/unordered bulk operation writes using withTransaction', {
2070-
metadata: { requires: { mongodb: '>= 3.6', topology: ['replicaset', 'sharded'] } },
2070+
metadata: { requires: { mongodb: '>= 3.6', topology: ['replicaset'] } },
20712071
async test() {
20722072
const session = client.startSession();
20732073

@@ -2086,7 +2086,7 @@ describe('Bulk', function () {
20862086

20872087
await session.abortTransaction();
20882088
},
2089-
{ readConcern: { level: 'majority' }, writeConcern: { w: 'majority' } }
2089+
{ readConcern: { level: 'local' }, writeConcern: { w: 'majority' } }
20902090
);
20912091

20922092
await session.endSession();

0 commit comments

Comments
 (0)