Skip to content

Commit b6498e9

Browse files
committed
test: do not use node util for deep equality check
1 parent 80330f6 commit b6498e9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/functional/unified-spec-runner/unified-utils.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { expect } from 'chai';
22
import type { CollectionOrDatabaseOptions, RunOnRequirement, Document } from './schema';
33
import { gte as semverGte, lte as semverLte } from 'semver';
44
import { MongoClient } from '../../../index';
5-
import { isDeepStrictEqual } from 'util';
65
import { TestConfiguration } from './runner';
76

87
export async function topologySatisfies(
@@ -41,7 +40,11 @@ export async function topologySatisfies(
4140
if (!config.parameters) throw new Error('Configuration does not have server parameters');
4241
for (const [name, value] of Object.entries(r.serverParameters)) {
4342
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+
}
4548
}
4649
}
4750
}

0 commit comments

Comments
 (0)