Skip to content

Commit 2173c14

Browse files
committed
start implementing prose tests
1 parent 64ef3fd commit 2173c14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/client-side-operations-timeout/client_side_operations_timeout.prose.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,15 +364,15 @@ describe('CSOT spec prose tests', () => {
364364
const client = new MongoClient('mongodb://invalid/?serverSelectionTimeoutMS=10');
365365
let duration: number;
366366
const admin = client.db('test').admin();
367-
const start = now();
367+
const start = performance.now();
368368
const maybeError = await admin
369369
.ping()
370370
.then(
371371
() => null,
372372
e => e
373373
)
374374
.finally(() => {
375-
duration = now() - start;
375+
duration = performance.now() - start;
376376
});
377377

378378
expect(maybeError).to.be.instanceof(MongoServerSelectionError);

0 commit comments

Comments
 (0)