1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

run XPEDNDING with consumers test on redis 6.2 and up, fix redis 6 tests

This commit is contained in:
leibale
2021-12-29 17:24:20 -05:00
parent 77022209bd
commit 627eb78315
2 changed files with 9 additions and 11 deletions

View File

@@ -16,8 +16,8 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
node-version: [12, 14, 16] node-version: ['12', '14', '16']
redis-version: [5, 6.0, 6.2] redis-version: ['5', '6.0', '6.2']
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v2.3.4
with: with:

View File

@@ -14,12 +14,9 @@ describe('XPENDING', () => {
describe('client.xPending', () => { describe('client.xPending', () => {
testUtils.testWithClient('simple', async client => { testUtils.testWithClient('simple', async client => {
await Promise.all([ await client.xGroupCreate('key', 'group', '$', {
client.xGroupCreate('key', 'group', '$', { MKSTREAM: true
MKSTREAM: true });
}),
client.xGroupCreateConsumer('key', 'group', 'consumer')
]);
assert.deepEqual( assert.deepEqual(
await client.xPending('key', 'group'), await client.xPending('key', 'group'),
@@ -57,8 +54,9 @@ describe('XPENDING', () => {
}] }]
} }
); );
}, GLOBAL.SERVERS.OPEN); }, {
...GLOBAL.SERVERS.OPEN,
minimumDockerVersion: [6, 2]
});
}); });
}); });