Skip to content

Commit 00964bd

Browse files
committed
test(NODE-7298): fix merge conflicts in tests
1 parent 65352ac commit 00964bd

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

test/integration/crud/aggregation.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ describe('Aggregation', function () {
874874
it(
875875
'should perform aggregations with a write stage on secondary when readPreference is secondary',
876876
{
877-
metadata: { requires: { topology: 'replicaset', mongodb: ">=5.0" } },
877+
metadata: { requires: { topology: 'replicaset', mongodb: '>=5.0' } },
878878
async test() {
879879
const databaseName = this.configuration.db;
880880
const client = this.configuration.newClient(this.configuration.writeConcernMax(), {

test/unit/sdam/server_selection.test.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ describe('server selection', function () {
295295
new ObjectId(),
296296
MIN_SECONDARY_WRITE_WIRE_VERSION
297297
);
298-
const selector = secondaryWritableServerSelector();
298+
const selector = secondaryWritableServerSelector(0);
299299
const servers = selector(
300300
topologyDescription,
301301
Array.from(serverDescriptions.values()),
@@ -401,7 +401,7 @@ describe('server selection', function () {
401401
new ObjectId(),
402402
MIN_SECONDARY_WRITE_WIRE_VERSION
403403
);
404-
const selector = secondaryWritableServerSelector();
404+
const selector = secondaryWritableServerSelector(0);
405405
const servers = selector(
406406
topologyDescription,
407407
Array.from(serverDescriptions.values()),
@@ -507,7 +507,7 @@ describe('server selection', function () {
507507
new ObjectId(),
508508
MIN_SECONDARY_WRITE_WIRE_VERSION
509509
);
510-
const selector = secondaryWritableServerSelector();
510+
const selector = secondaryWritableServerSelector(0);
511511
const servers = selector(
512512
topologyDescription,
513513
Array.from(serverDescriptions.values()),
@@ -564,9 +564,7 @@ describe('server selection', function () {
564564
new ObjectId(),
565565
MIN_SECONDARY_WRITE_WIRE_VERSION
566566
);
567-
const selector = secondaryWritableServerSelector(MIN_SECONDARY_WRITE_WIRE_VERSION);
568-
const servers = selector(topologyDescription, Array.from(serverDescriptions.values()));
569-
const selector = secondaryWritableServerSelector();
567+
const selector = secondaryWritableServerSelector(0);
570568
const servers = selector(
571569
topologyDescription,
572570
Array.from(serverDescriptions.values()),
@@ -589,9 +587,7 @@ describe('server selection', function () {
589587
MIN_SECONDARY_WRITE_WIRE_VERSION,
590588
{ localThresholdMS: 5 }
591589
);
592-
const selector = secondaryWritableServerSelector(MIN_SECONDARY_WRITE_WIRE_VERSION);
593-
const servers = selector(topologyDescription, Array.from(serverDescriptions.values()));
594-
const selector = secondaryWritableServerSelector();
590+
const selector = secondaryWritableServerSelector(0);
595591
const servers = selector(
596592
topologyDescription,
597593
Array.from(serverDescriptions.values()),

0 commit comments

Comments
 (0)