You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by ti...@apache.org on 2026/10/16 17:51:19 UTC

(opendal) branch main updated: fix(test): fix flaky redis tests (#8411)

This is an automated email from the ASF dual-hosted git repository.

tisonkun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 9addb73a9 fix(test): fix flaky redis tests (#8411)
9addb73a9 is described below

commit 9addb73a93f48a2dacd3ceed922ead98f28d0ed3
Author: dentiny <de...@gmail.com>
AuthorDate: Fri Oct 16 10:51:13 2026 -0700

    fix(test): fix flaky redis tests (#8411)
---
 fixtures/redis/docker-compose-redis-cluster.yml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/fixtures/redis/docker-compose-redis-cluster.yml b/fixtures/redis/docker-compose-redis-cluster.yml
index 48752c4c4..d5251c1d8 100644
--- a/fixtures/redis/docker-compose-redis-cluster.yml
+++ b/fixtures/redis/docker-compose-redis-cluster.yml
@@ -71,3 +71,8 @@ services:
       - 'REDIS_CLUSTER_REPLICAS=1'
       - 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5'
       - 'REDIS_CLUSTER_CREATOR=yes'
+    healthcheck:
+      test: ['CMD-SHELL', "redis-cli cluster info | grep -q 'cluster_state:ok'"]
+      interval: 1s
+      timeout: 3s
+      retries: 30