@@ -3,35 +3,6 @@ import * as path from 'path';
33import { loadSpecTests } from '../../spec/index' ;
44import { runUnifiedSuite } from '../../tools/unified-spec-runner/runner' ;
55
6- const unacknowledgedHintTests = [
7- 'Unacknowledged updateOne with hint document on 4.2+ server' ,
8- 'Unacknowledged updateOne with hint string on 4.2+ server' ,
9- 'Unacknowledged updateMany with hint document on 4.2+ server' ,
10- 'Unacknowledged updateMany with hint string on 4.2+ server' ,
11- 'Unacknowledged replaceOne with hint document on 4.2+ server' ,
12- 'Unacknowledged replaceOne with hint string on 4.2+ server' ,
13- 'Unacknowledged updateOne with hint document on 4.2+ server' ,
14- 'Unacknowledged updateOne with hint string on 4.2+ server' ,
15- 'Unacknowledged updateMany with hint document on 4.2+ server' ,
16- 'Unacknowledged updateMany with hint string on 4.2+ server' ,
17- 'Unacknowledged replaceOne with hint document on 4.2+ server' ,
18- 'Unacknowledged replaceOne with hint string on 4.2+ server' ,
19- 'Unacknowledged findOneAndUpdate with hint document on 4.4+ server' ,
20- 'Unacknowledged findOneAndUpdate with hint string on 4.4+ server' ,
21- 'Unacknowledged findOneAndReplace with hint document on 4.4+ server' ,
22- 'Unacknowledged findOneAndReplace with hint string on 4.4+ server' ,
23- 'Unacknowledged findOneAndDelete with hint document on 4.4+ server' ,
24- 'Unacknowledged findOneAndDelete with hint string on 4.4+ server' ,
25- 'Unacknowledged deleteOne with hint document on 4.4+ server' ,
26- 'Unacknowledged deleteOne with hint string on 4.4+ server' ,
27- 'Unacknowledged deleteMany with hint document on 4.4+ server' ,
28- 'Unacknowledged deleteMany with hint string on 4.4+ server' ,
29- 'Unacknowledged deleteOne with hint document on 4.4+ server' ,
30- 'Unacknowledged deleteOne with hint string on 4.4+ server' ,
31- 'Unacknowledged deleteMany with hint document on 4.4+ server' ,
32- 'Unacknowledged deleteMany with hint string on 4.4+ server'
33- ] ;
34-
356const loadBalancedCollationTests = [
367 'FindOneAndUpdate when many documents match with collation returning the document before modification' ,
378 'FindOneAndReplace when one document matches with collation returning the document after modification' ,
@@ -70,13 +41,10 @@ describe('CRUD unified', function () {
7041 runUnifiedSuite (
7142 loadSpecTests ( path . join ( 'crud' , 'unified' ) ) ,
7243 ( { description } , { isLoadBalanced } ) => {
73- return unacknowledgedHintTests . includes ( description )
74- ? `TODO(NODE-3541)`
75- : isLoadBalanced && loadBalancedCollationTests . includes ( description )
76- ? `TODO(NODE-6280): fix collation for find and modify commands on load balanced mode`
77- : description in unimplementedCrudTests
78- ? unimplementedCrudTests [ description ]
79- : false ;
44+ if ( isLoadBalanced && loadBalancedCollationTests . includes ( description ) ) {
45+ return `TODO(NODE-6280): fix collation for find and modify commands on load balanced mode` ;
46+ }
47+ return unimplementedCrudTests [ description ] ?? false ;
8048 }
8149 ) ;
8250} ) ;
0 commit comments