1
1
import { expect } from 'chai' ;
2
2
import * as path from 'path' ;
3
+ import { lt } from 'semver' ;
3
4
4
5
import type { Collection , Db , MongoClient } from '../../mongodb' ;
5
6
import { loadSpecTests } from '../../spec' ;
@@ -14,7 +15,7 @@ interface RetryableWriteTestContext {
14
15
failPointName ?: any ;
15
16
}
16
17
17
- describe ( 'Legacy Retryable Writes Specs' , function ( ) {
18
+ describe . only ( 'Legacy Retryable Writes Specs' , function ( ) {
18
19
let ctx : RetryableWriteTestContext = { } ;
19
20
20
21
const retryableWrites = loadSpecTests ( 'retryable-writes' , 'legacy' ) ;
@@ -56,6 +57,14 @@ describe('Legacy Retryable Writes Specs', function () {
56
57
57
58
await utilClient . close ( ) ;
58
59
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
+
59
68
if ( ! someRequirementMet ) this . skip ( ) ;
60
69
} ) ;
61
70
@@ -220,6 +229,6 @@ async function turnOffFailPoint(client, name) {
220
229
} ) ;
221
230
}
222
231
223
- describe ( 'Retryable Writes (unified)' , function ( ) {
232
+ describe . only ( 'Retryable Writes (unified)' , function ( ) {
224
233
runUnifiedSuite ( loadSpecTests ( path . join ( 'retryable-writes' , 'unified' ) ) ) ;
225
234
} ) ;
0 commit comments