You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
chore: use short handle for process.nextTick
This commit is contained in:
@@ -127,9 +127,7 @@ describe('connection tests', () => {
|
||||
client.once('ready', () => {
|
||||
client.set('foo', 'bar').catch(helper.isError())
|
||||
client.quit().then(() => done())
|
||||
process.nextTick(() => {
|
||||
client._stream.destroy()
|
||||
})
|
||||
process.nextTick(() => client._stream.destroy())
|
||||
})
|
||||
})
|
||||
})
|
||||
@@ -288,9 +286,7 @@ describe('connection tests', () => {
|
||||
client = redis.createClient({
|
||||
connectTimeout: 1000
|
||||
})
|
||||
process.nextTick(() => {
|
||||
assert.strictEqual(client._stream._idleTimeout, 1000)
|
||||
})
|
||||
process.nextTick(assert.strictEqual, client._stream._idleTimeout, 1000)
|
||||
client.on('connect', () => {
|
||||
assert.strictEqual(client._stream._idleTimeout, -1)
|
||||
assert.strictEqual(client._stream.listeners('timeout').length, 0)
|
||||
|
Reference in New Issue
Block a user