Skip to content

Commit

Permalink
[fix][test]Flaky-test: SchemaServiceTest.testSchemaRegistryMetrics (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
visxu authored Nov 6, 2024
1 parent 8eeb0e2 commit 13133c1
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 13133c1

Please sign in to comment.