Merge pull request #3939 from nats-io/fix-jsz-mon-test

Fix flaky test TestMonitorJsz/raftgroups
This commit is contained in:
Derek Collison
2023-03-02 12:23:38 -08:00
committed by GitHub

View File

@@ -4427,7 +4427,7 @@ func TestMonitorJsz(t *testing.T) {
t.Fatal("expected stream raft group info to be included")
}
crgroup := si.ConsumerRaftGroups[0]
if crgroup.Name != "my-consumer-replicated" {
if crgroup.Name != "my-consumer-replicated" && crgroup.Name != "my-consumer-mirror" {
t.Fatalf("expected consumer name to be included in raft group info, got: %v", crgroup.Name)
}
if len(crgroup.RaftGroup) == 0 {