@@ -95,33 +95,14 @@ function translateClientOptions(options) {
95
95
return options ;
96
96
}
97
97
98
- function isRelaxed ( fileName ) {
99
- return (
100
- ! fileName . includes ( 'fle2-CreateCollection' ) &&
101
- ! fileName . includes ( 'fle2-BypassQueryAnalysis' ) &&
102
- ! fileName . includes ( 'fle2-validatorAndPartialFieldExpression' ) &&
103
- ! fileName . includes ( 'fle2-EncryptedFields-vs-jsonSchema' ) &&
104
- ! fileName . includes ( 'fle2-FindOneAndUpdate' ) &&
105
- ! fileName . includes ( 'fle2-InsertFind-Indexed' ) &&
106
- ! fileName . includes ( 'fle2-InsertFind-Unindexed' ) &&
107
- ! fileName . includes ( 'fle2-Update' ) &&
108
- ! fileName . includes ( 'fle2-Delete' )
109
- ) ;
110
- }
111
-
112
98
function gatherTestSuites ( specPath ) {
113
99
return fs
114
100
. readdirSync ( specPath )
115
101
. filter ( x => x . indexOf ( '.json' ) !== - 1 )
116
102
. map ( x =>
117
- Object . assign (
118
- EJSON . parse ( fs . readFileSync ( path . join ( specPath , x ) ) , {
119
- relaxed : isRelaxed ( x )
120
- } ) ,
121
- {
122
- name : path . basename ( x , '.json' )
123
- }
124
- )
103
+ Object . assign ( EJSON . parse ( fs . readFileSync ( path . join ( specPath , x ) ) , { relaxed : false } ) , {
104
+ name : path . basename ( x , '.json' )
105
+ } )
125
106
) ;
126
107
}
127
108
@@ -377,7 +358,9 @@ function runTestSuiteTest(configuration, spec, context) {
377
358
minHeartbeatFrequencyMS : 100 ,
378
359
monitorCommands : true ,
379
360
...spec . clientOptions ,
380
- [ Symbol . for ( '@@mdb.skipPingOnConnect' ) ] : true
361
+ [ Symbol . for ( '@@mdb.skipPingOnConnect' ) ] : true ,
362
+ promoteValues : false ,
363
+ promoteLongs : false
381
364
} ) ;
382
365
383
366
const url = resolveConnectionString ( configuration , spec , context ) ;
0 commit comments