Skip to content

Commit

Permalink
chore: fix faketimer warning in test/request-timeout.js (nodejs#2656)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak authored and crysmags committed Feb 27, 2024
1 parent df41b9d commit 681dfa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/request-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 681dfa8

Please sign in to comment.