From 86f47ca93e1d7489381264fecf4aae750cd7b69d Mon Sep 17 00:00:00 2001 From: uzlopak Date: Sat, 27 Jan 2024 12:35:22 +0100 Subject: [PATCH] chore: fix faketimer warning in test/request-timeout.js --- test/request-timeout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/request-timeout.js b/test/request-timeout.js index 23115ea4b9e..6ac19735394 100644 --- a/test/request-timeout.js +++ b/test/request-timeout.js @@ -433,7 +433,7 @@ test('client.destroy should cancel the timeout', (t) => { test('client.close should wait for the timeout', (t) => { t.plan(2) - const clock = FakeTimers.install() + const clock = FakeTimers.install({ shouldClearNativeTimers: true }) t.teardown(clock.uninstall.bind(clock)) const orgTimers = { ...timers }