Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ describe('CSOT spec prose tests', function () {
await client?.close();
});

before(function () {
if (semver.satisfies(this.configuration.version, '>=9.0')) {
this.skipReason = 'TODO(NODE-7418): CSOT tests fail on server >=9.0, tracked in NODE-7418';
this.skip();
}
});

describe('1. Multi-batch writes', { requires: { topology: 'single', mongodb: '>=4.4' } }, () => {
/**
* This test MUST only run against standalones on server versions 4.4 and higher.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ describe('CSOT spec tests', function () {
}

runUnifiedSuite(specs, (test, configuration) => {
if (semver.satisfies(configuration.version, '>=9.0')) {
return 'TODO(NODE-7418): CSOT tests fail on server >=9.0, tracked in NODE-7418';
}
const sessionCSOTTests = ['timeoutMS applied to withTransaction'];
if (
configuration.topologyType === 'LoadBalanced' &&
Expand All @@ -60,5 +63,10 @@ describe('CSOT modified spec tests', function () {
const specs = loadSpecTests(
join('..', 'integration', 'client-side-operations-timeout', 'unified-csot-node-specs')
);
runUnifiedSuite(specs);
runUnifiedSuite(specs, (test, configuration) => {
if (semver.satisfies(configuration.version, '>=9.0')) {
return 'TODO(NODE-7418): CSOT tests fail on server >=9.0, tracked in NODE-7418';
}
return false;
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ import { type FailCommandFailPoint, type FailPoint, waitUntilPoolsFilled } from
const metadata = { requires: { mongodb: '>=4.4' } };

describe('CSOT driver tests', metadata, () => {
before(function () {
if (semver.satisfies(this.configuration.version, '>=9.0')) {
this.skipReason = 'TODO(NODE-7418): CSOT tests fail on server >=9.0, tracked in NODE-7418';
this.skip();
}
});

// NOTE: minPoolSize here is set to ensure that connections are available when testing timeout
// behaviour. This reduces flakiness in our tests since operations will not spend time
// establishing connections, more closely mirroring long-running application behaviour
Expand Down
8 changes: 8 additions & 0 deletions test/integration/crud/client_bulk_write.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { expect } from 'chai';
import * as semver from 'semver';
import { setTimeout } from 'timers/promises';

import {
Expand Down Expand Up @@ -90,6 +91,13 @@ describe('Client Bulk Write', function () {
});

describe('CSOT enabled', function () {
before(function () {
if (semver.satisfies(this.configuration.version, '>=9.0')) {
this.skipReason = 'TODO(NODE-7418): CSOT tests fail on server >=9.0, tracked in NODE-7418';
this.skip();
}
});

describe('when timeoutMS is set on the client', function () {
beforeEach(async function () {
client = this.configuration.newClient({}, { timeoutMS: 300 });
Expand Down
Loading