You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Add support for client.unref()
and client.ref()
(#2188)
* close #2185 - add support for client.unref() and client.ref() * allow sync tests
This commit is contained in:
@@ -844,4 +844,9 @@ describe('Client', () => {
|
||||
await client.disconnect();
|
||||
await client.connect();
|
||||
}, GLOBAL.SERVERS.OPEN);
|
||||
|
||||
testUtils.testWithClient('should be able to use ref and unref', client => {
|
||||
client.unref();
|
||||
client.ref();
|
||||
}, GLOBAL.SERVERS.OPEN);
|
||||
});
|
||||
|
Reference in New Issue
Block a user