diff --git a/src/test/java/com/zaxxer/hikari/pool/TestMetrics.java b/src/test/java/com/zaxxer/hikari/pool/TestMetrics.java index 2e05dca98..84ad628fe 100644 --- a/src/test/java/com/zaxxer/hikari/pool/TestMetrics.java +++ b/src/test/java/com/zaxxer/hikari/pool/TestMetrics.java @@ -71,7 +71,7 @@ public void testMetricWait() throws SQLException @Override public boolean matches(String name, Metric metric) { - return "testMetricWait.pool.Wait".equals(MetricRegistry.name("testMetricWait", "pool", "Wait")); + return name.equals(MetricRegistry.name("testMetricWait", "pool", "Wait")); } }).values().iterator().next();