1
0
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:
Leibale
2023-11-20 12:47:13 -05:00
parent f8c24c0edd
commit 52e8c50dc8
2 changed files with 77 additions and 6 deletions

View 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);
});