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 testWithClientPool and first pool test
This commit is contained in:
11
packages/client/lib/client/pool.spec.ts
Normal file
11
packages/client/lib/client/pool.spec.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { strict as assert } from 'node:assert';
|
||||
import testUtils, { GLOBAL } from '../test-utils';
|
||||
|
||||
describe.only('RedisClientPool', () => {
|
||||
testUtils.testWithClientPool('sendCommand', async pool => {
|
||||
assert.equal(
|
||||
await pool.sendCommand(['PING']),
|
||||
'PONG'
|
||||
);
|
||||
}, GLOBAL.SERVERS.OPEN);
|
||||
});
|
Reference in New Issue
Block a user