From e029b8f99620214ed9049084bfd77959190cf764 Mon Sep 17 00:00:00 2001 From: Andrew Mayorov Date: Wed, 27 Mar 2024 15:46:07 +0100 Subject: [PATCH] test(dsrepl): wait for whole cluster readiness To minimize the chance of flaky tests due to the shards not being completely online. Co-Authored-By: Thales Macedo Garitezi --- apps/emqx_durable_storage/test/emqx_ds_replication_SUITE.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqx_durable_storage/test/emqx_ds_replication_SUITE.erl b/apps/emqx_durable_storage/test/emqx_ds_replication_SUITE.erl index d1f98b3c3..5ff1d5fb2 100644 --- a/apps/emqx_durable_storage/test/emqx_ds_replication_SUITE.erl +++ b/apps/emqx_durable_storage/test/emqx_ds_replication_SUITE.erl @@ -52,7 +52,7 @@ t_replication_transfers_snapshots(Config) -> ?retry( 500, 10, - ?assertMatch([_], shards_online(Node, ?DB)) + ?assertMatch([[_], [_], [_]], [shards_online(N, ?DB) || N <- Nodes]) ), %% Stop the DB on the "offline" node.