@@ -10,27 +10,48 @@ const enabled = [
10
10
'retryability-legacy-timeouts' ,
11
11
'retryability-timeoutMS' ,
12
12
'runCursorCommand' ,
13
- 'close-cursors'
13
+ 'close-cursors' ,
14
+ 'non-tailable-cursors' ,
15
+ 'global-timeoutMS' ,
16
+ 'legacy-timeouts' ,
17
+ 'command-execution' ,
18
+ 'cursors' ,
19
+ 'error-transformations'
14
20
] ;
15
21
16
- const bulkWriteOperations = [
17
- 'timeoutMS applies to whole operation, not individual attempts - bulkWrite on collection' ,
18
- 'timeoutMS applies to whole operation, not individual attempts - insertMany on collection'
19
- ] ;
22
+ const skipped = {
23
+ bulkWrite : 'TODO(NODE-6274)' ,
24
+ 'change-streams' : 'TODO(NODE-6035)' ,
25
+ 'convenient-transactions' : 'TODO(NODE-5687)' ,
26
+ //'deprecated-options': 'TODO(NODE-5689)',
27
+ 'gridfs-advanced' : 'TODO(NODE-6275)' ,
28
+ 'gridfs-delete' : 'TODO(NODE-6275)' ,
29
+ 'gridfs-download' : 'TODO(NODE-6275)' ,
30
+ 'gridfs-find' : 'TODO(NODE-6275)' ,
31
+ 'gridfs-upload' : 'TODO(NODE-6275)' ,
32
+ 'sessions-inherit-timeoutMS' : 'TODO(NODE-5687)' ,
33
+ 'sessions-override-operation-timeoutMS' : 'TODO(NODE-5687)' ,
34
+ 'sessions-override-timeoutMS' : 'TODO(NODE-5687)' ,
35
+ 'tailable-awaitData' : 'TODO(NODE-6035)' ,
36
+ 'tailable-non-awaitData' : 'TODO(NODE-6035)'
37
+ } ;
38
+
39
+ const bulkWriteOperations =
40
+ / t i m e o u t M S a p p l i e s t o w h o l e o p e r a t i o n , n o t i n d i v i d u a l a t t e m p t s - ( b u l k W r i t e | i n s e r t M a n y ) o n .* / ;
20
41
21
42
describe ( 'CSOT spec tests' , function ( ) {
22
43
const specs = loadSpecTests ( join ( 'client-side-operations-timeout' ) ) ;
23
44
for ( const spec of specs ) {
24
45
for ( const test of spec . tests ) {
25
- // not one of the test suites listed in kickoff
26
- if ( ! enabled . includes ( spec . name ) ) {
27
- test . skipReason = 'TODO(NODE-5684): Not working yet' ;
46
+ if ( skipped [ spec . name ] != null ) {
47
+ test . skipReason = skipped [ spec . name ] ;
28
48
}
29
49
30
- if ( bulkWriteOperations . includes ( test . description ) )
50
+ if ( bulkWriteOperations . test ( test . description ) )
31
51
test . skipReason =
32
52
'TODO(NODE-6274): update test runner to check errorResponse field of MongoBulkWriteError in isTimeoutError assertion' ;
33
53
}
34
54
}
55
+
35
56
runUnifiedSuite ( specs ) ;
36
57
} ) ;
0 commit comments