From 8adf36bc3d109aebb84a8ba37b7edb9cb87ca222 Mon Sep 17 00:00:00 2001 From: Ruben Dijkstra Date: Mon, 25 Jan 2016 16:49:54 +0100 Subject: [PATCH] Skip the `testMetricUsage` test on Windows My 75th percentile is indeed 250ms, but _sometimes_ returns 249ms --- src/test/java/com/zaxxer/hikari/pool/TestMetrics.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/java/com/zaxxer/hikari/pool/TestMetrics.java b/src/test/java/com/zaxxer/hikari/pool/TestMetrics.java index 9b931860..0cafd831 100644 --- a/src/test/java/com/zaxxer/hikari/pool/TestMetrics.java +++ b/src/test/java/com/zaxxer/hikari/pool/TestMetrics.java @@ -22,6 +22,7 @@ import java.util.SortedMap; import java.util.concurrent.TimeUnit; import org.junit.Assert; +import org.junit.Assume; import org.junit.Test; import com.codahale.metrics.Histogram; @@ -37,6 +38,8 @@ import com.zaxxer.hikari.metrics.MetricsTrackerFactory; import com.zaxxer.hikari.metrics.dropwizard.CodahaleMetricsTrackerFactory; import com.zaxxer.hikari.util.UtilityElf; +import shaded.org.codehaus.plexus.interpolation.os.Os; + /** * Test HikariCP/CodaHale metrics integration. * @@ -77,6 +80,7 @@ public class TestMetrics @Test public void testMetricUsage() throws SQLException { + Assume.assumeFalse(Os.isFamily(Os.FAMILY_WINDOWS)); MetricRegistry metricRegistry = new MetricRegistry(); HikariConfig config = new HikariConfig();