mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Fix flaky test TestMonitorJsz/raftgroups
Signed-off-by: Waldemar Quevedo <wally@nats.io>
This commit is contained in:
@@ -4427,7 +4427,7 @@ func TestMonitorJsz(t *testing.T) {
|
|||||||
t.Fatal("expected stream raft group info to be included")
|
t.Fatal("expected stream raft group info to be included")
|
||||||
}
|
}
|
||||||
crgroup := si.ConsumerRaftGroups[0]
|
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)
|
t.Fatalf("expected consumer name to be included in raft group info, got: %v", crgroup.Name)
|
||||||
}
|
}
|
||||||
if len(crgroup.RaftGroup) == 0 {
|
if len(crgroup.RaftGroup) == 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user