migrated to FakeTimers (#1221)

This commit is contained in:
Alexander Mykolaichuk
2020-06-08 09:37:29 +02:00
committed by delvedor
parent 072931f7af
commit 93cf8aa3c0
5 changed files with 12 additions and 13 deletions

View File

@ -6,7 +6,7 @@
const { test } = require('tap')
const { URL } = require('url')
const lolex = require('lolex')
const FakeTimers = require('@sinonjs/fake-timers')
const workq = require('workq')
const { buildCluster } = require('../utils')
const { Client, Connection, Transport, events, errors } = require('../../index')
@ -115,7 +115,7 @@ test('Should handle hostnames in publish_address', t => {
test('Sniff interval', t => {
t.plan(11)
const clock = lolex.install({ toFake: ['Date'] })
const clock = FakeTimers.install({ toFake: ['Date'] })
const q = workq()
buildCluster(({ nodes, shutdown, kill }) => {