Skip to content

Commit b868d0b

Browse files
committed
chore: fix less promises left over on windows
1 parent 6fcac63 commit b868d0b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/integration/node-specific/resource_clean_up.test.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ describe('Driver Resources', () => {
107107
await sleep(10);
108108
const promiseCountAfter = v8.queryObjects(Promise, { format: 'count' });
109109

110-
expect(promiseCountAfter).to.be.within(promiseCountBefore - 5, promiseCountBefore + 5);
110+
const offset = process.platform === 'win32' ? 30 : 5;
111+
expect(promiseCountAfter).to.be.within(
112+
promiseCountBefore - offset,
113+
promiseCountBefore + offset
114+
);
111115
});
112116
});
113117
});

0 commit comments

Comments
 (0)