Skip to content

Commit

Permalink
[fix][test]Flaky-test: SchemaServiceTest.testSchemaRegistryMetrics (#…
Browse files Browse the repository at this point in the history
…23566)

(cherry picked from commit 13133c1)
  • Loading branch information
visxu authored and lhotari committed Nov 13, 2024
1 parent b24d6b7 commit 5bb8280
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,22 +180,22 @@ public void testSchemaRegistryMetrics() throws Exception {
Assert.assertEquals(putMetrics.size(), 0);

Collection<Metric> deleteLatency = metrics.get("pulsar_schema_del_ops_latency_count");
for (Metric metric : deleteLatency) {
assertThat(deleteLatency).anySatisfy(metric -> {
Assert.assertEquals(metric.tags.get("namespace"), namespace);
Assert.assertTrue(metric.value > 0);
}
});

Collection<Metric> getLatency = metrics.get("pulsar_schema_get_ops_latency_count");
for (Metric metric : getLatency) {
assertThat(getLatency).anySatisfy(metric -> {
Assert.assertEquals(metric.tags.get("namespace"), namespace);
Assert.assertTrue(metric.value > 0);
}
});

Collection<Metric> putLatency = metrics.get("pulsar_schema_put_ops_latency_count");
for (Metric metric : putLatency) {
assertThat(putLatency).anySatisfy(metric -> {
Assert.assertEquals(metric.tags.get("namespace"), namespace);
Assert.assertTrue(metric.value > 0);
}
});
}

@Test
Expand Down

0 comments on commit 5bb8280

Please sign in to comment.