Skip to content

Commit 52465d5

Browse files
committed
fix tests minimum version
1 parent 877e57a commit 52465d5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/client/lib/client/index.spec.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -871,9 +871,12 @@ describe('Client', () => {
871871
} finally {
872872
await subscriber.disconnect();
873873
}
874-
}, GLOBAL.SERVERS.OPEN);
874+
}, {
875+
...GLOBAL.SERVERS.OPEN,
876+
minimumDockerVersion: [7]
877+
});
875878

876-
testUtils.testWithClient('should be able to handle errors in SUBSCRIBE', async publisher => {
879+
testUtils.testWithClient('should handle errors in SUBSCRIBE', async publisher => {
877880
const subscriber = publisher.duplicate();
878881

879882
await subscriber.connect();
@@ -907,7 +910,8 @@ describe('Client', () => {
907910
}
908911
}, {
909912
// this test change ACL rules, running in isolated server
910-
serverArguments: []
913+
serverArguments: [],
914+
minimumDockerVersion: [6 ,2] // ACL PubSub rules were added in Redis 6.2
911915
});
912916
});
913917

0 commit comments

Comments
 (0)