diff --git a/tds/src/integrationTests/java/thredds/server/services/TestEnhancements.java b/tds/src/integrationTests/java/thredds/server/services/TestEnhancements.java index 1e986e620a..73f07ca179 100644 --- a/tds/src/integrationTests/java/thredds/server/services/TestEnhancements.java +++ b/tds/src/integrationTests/java/thredds/server/services/TestEnhancements.java @@ -37,9 +37,7 @@ public void testNCSSWithEnhancements() throws IOException { assertThat(enhancedVar.findAttribute("add_offset")).isNull(); final Array values1 = enhancedVar.read(); final Array values2 = orgVar.read(); - for (int i = 0; i < values1.getSize(); i++) { - assertThat(values1.getDouble(i)).isEqualTo(values2.getDouble(i)); - } + MAMath.nearlyEquals(values1, values2); } }