File tree 1 file changed +5
-2
lines changed
test/functional/unified-spec-runner
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { expect } from 'chai';
2
2
import type { CollectionOrDatabaseOptions , RunOnRequirement , Document } from './schema' ;
3
3
import { gte as semverGte , lte as semverLte } from 'semver' ;
4
4
import { MongoClient } from '../../../index' ;
5
- import { isDeepStrictEqual } from 'util' ;
6
5
import { TestConfiguration } from './runner' ;
7
6
8
7
export async function topologySatisfies (
@@ -41,7 +40,11 @@ export async function topologySatisfies(
41
40
if ( ! config . parameters ) throw new Error ( 'Configuration does not have server parameters' ) ;
42
41
for ( const [ name , value ] of Object . entries ( r . serverParameters ) ) {
43
42
if ( name in config . parameters ) {
44
- ok &&= isDeepStrictEqual ( config . parameters [ name ] , value ) ;
43
+ try {
44
+ expect ( config . parameters [ name ] ) . to . deep . equal ( value ) ;
45
+ } catch ( _err ) {
46
+ ok = false ;
47
+ }
45
48
}
46
49
}
47
50
}
You can’t perform that action at this time.
0 commit comments