mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 10:40:41 -07:00
Actually need to wait to accumulate, make sure we get at least 8.
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -2887,12 +2887,15 @@ func TestJetStreamClusterExtendedAccountInfo(t *testing.T) {
|
||||
return info.JetStreamAccountStats
|
||||
}
|
||||
|
||||
// Wait to accumulate.
|
||||
time.Sleep(250 * time.Millisecond)
|
||||
|
||||
ai := getAccountInfo()
|
||||
if ai.Streams != 3 || ai.Consumers != 3 {
|
||||
t.Fatalf("AccountInfo not correct: %+v", ai)
|
||||
}
|
||||
if ai.API.Total < 9 {
|
||||
t.Fatalf("Expected at least 9 total API calls, got %d", ai.API.Total)
|
||||
if ai.API.Total < 8 {
|
||||
t.Fatalf("Expected at least 8 total API calls, got %d", ai.API.Total)
|
||||
}
|
||||
|
||||
// Now do a failure to make sure we track API errors.
|
||||
|
||||
Reference in New Issue
Block a user