Wrap metric test in eventually (#14945)

changelog_begin
changelog_end
This commit is contained in:
Simon Maxen 2022-09-06 15:04:03 +01:00 committed by GitHub
parent fe2d5b06ac
commit bb99bd865c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,7 +250,7 @@ final class RateLimitingInterceptorSpec
status3.getCode shouldBe Code.ABORTED
status3.getDescription should include(metrics.daml.lapi.streams.activeName)
status4.getCode shouldBe Code.OK
eventually({ metrics.daml.lapi.streams.active.getCount shouldBe 0 })
eventually { metrics.daml.lapi.streams.active.getCount shouldBe 0 }
}
}
}
@ -290,7 +290,7 @@ final class RateLimitingInterceptorSpec
helloStatus1.getCode shouldBe Code.OK
status2.getCode shouldBe Code.OK
helloStatus2.getCode shouldBe Code.OK
metrics.daml.lapi.streams.active.getCount shouldBe 0
eventually { metrics.daml.lapi.streams.active.getCount shouldBe 0 }
}
}
}