Skip to content

Commit e7037e9

Browse files
skip tests with comment
1 parent 231fb80 commit e7037e9

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

test/integration/retryable-writes/retryable_writes.spec.test.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { expect } from 'chai';
22
import * as path from 'path';
3+
import { lt } from 'semver';
34

45
import type { Collection, Db, MongoClient } from '../../mongodb';
56
import { loadSpecTests } from '../../spec';
@@ -14,7 +15,7 @@ interface RetryableWriteTestContext {
1415
failPointName?: any;
1516
}
1617

17-
describe('Legacy Retryable Writes Specs', function () {
18+
describe.only('Legacy Retryable Writes Specs', function () {
1819
let ctx: RetryableWriteTestContext = {};
1920

2021
const retryableWrites = loadSpecTests('retryable-writes', 'legacy');
@@ -56,6 +57,14 @@ describe('Legacy Retryable Writes Specs', function () {
5657

5758
await utilClient.close();
5859

60+
if (
61+
this.configuration.topologyType === 'Sharded' &&
62+
lt(this.configuration.version, '4.4.0')
63+
) {
64+
// 'TODO(NODE-5925): will be resolved when driver migrates to unified tests
65+
this.skip();
66+
}
67+
5968
if (!someRequirementMet) this.skip();
6069
});
6170

@@ -220,6 +229,6 @@ async function turnOffFailPoint(client, name) {
220229
});
221230
}
222231

223-
describe('Retryable Writes (unified)', function () {
232+
describe.only('Retryable Writes (unified)', function () {
224233
runUnifiedSuite(loadSpecTests(path.join('retryable-writes', 'unified')));
225234
});

0 commit comments

Comments
 (0)