Skip to content

Commit 36dd672

Browse files
fix: revert changes of timers/promises
1 parent f7d7d11 commit 36dd672

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/integration/server-selection/server_selection.prose.operation_count.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from 'chai';
2-
import { setTimeout as sleep } from 'timers/promises';
2+
import { setTimeout } from 'timers';
33
import { promisify } from 'util';
44

55
import { CommandStartedEvent } from '../../../src';
@@ -19,6 +19,8 @@ const failPoint = {
1919

2020
const POOL_SIZE = 100;
2121

22+
const sleep = promisify(setTimeout);
23+
2224
async function runTaskGroup(collection: Collection, count: 10 | 100 | 1000) {
2325
for (let i = 0; i < count; ++i) {
2426
await collection.findOne({});

0 commit comments

Comments
 (0)