diff --git a/test/integration/client-side-operations-timeout/client_side_operations_timeout.prose.test.ts b/test/integration/client-side-operations-timeout/client_side_operations_timeout.prose.test.ts index a00601a0f28..a256bce727c 100644 --- a/test/integration/client-side-operations-timeout/client_side_operations_timeout.prose.test.ts +++ b/test/integration/client-side-operations-timeout/client_side_operations_timeout.prose.test.ts @@ -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. diff --git a/test/integration/client-side-operations-timeout/client_side_operations_timeout.spec.test.ts b/test/integration/client-side-operations-timeout/client_side_operations_timeout.spec.test.ts index c2ad1d1065c..ecf8a0a4ca0 100644 --- a/test/integration/client-side-operations-timeout/client_side_operations_timeout.spec.test.ts +++ b/test/integration/client-side-operations-timeout/client_side_operations_timeout.spec.test.ts @@ -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' && @@ -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; + }); }); diff --git a/test/integration/client-side-operations-timeout/node_csot.test.ts b/test/integration/client-side-operations-timeout/node_csot.test.ts index 7aad267083d..961e98127ec 100644 --- a/test/integration/client-side-operations-timeout/node_csot.test.ts +++ b/test/integration/client-side-operations-timeout/node_csot.test.ts @@ -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 diff --git a/test/integration/crud/client_bulk_write.test.ts b/test/integration/crud/client_bulk_write.test.ts index acb05b2e013..4a65f800837 100644 --- a/test/integration/crud/client_bulk_write.test.ts +++ b/test/integration/crud/client_bulk_write.test.ts @@ -1,4 +1,5 @@ import { expect } from 'chai'; +import * as semver from 'semver'; import { setTimeout } from 'timers/promises'; import { @@ -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 });