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 committed Jan 27, 2024
1 parent 4f6d75c commit ab90244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/request-timeout.js
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 ab90244

Please sign in to comment.