From 2faa85b43c0098c1cdca244be676bcfcc2e980dd Mon Sep 17 00:00:00 2001 From: Sean Arms <67096+lesserwhirls@users.noreply.github.com> Date: Tue, 23 Feb 2021 16:27:19 -0700 Subject: [PATCH] Fix failing test due to name change. --- .../src/test/java/ucar/nc2/grib/GribTestCreationOptions.java | 4 ++-- grib/src/test/java/ucar/nc2/grib/grib2/TestRotatedPole.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cdm-test/src/test/java/ucar/nc2/grib/GribTestCreationOptions.java b/cdm-test/src/test/java/ucar/nc2/grib/GribTestCreationOptions.java index 4ff332f2be..0e9b1f3dbf 100644 --- a/cdm-test/src/test/java/ucar/nc2/grib/GribTestCreationOptions.java +++ b/cdm-test/src/test/java/ucar/nc2/grib/GribTestCreationOptions.java @@ -74,8 +74,8 @@ public void testTimeUnitOption() throws Exception { String dataset = TestDir.cdmUnitTestDir + "gribCollections/hrrr/DewpointTempFromGsdHrrrrConus3surface.grib2"; try (NetcdfDataset ds = NetcdfDataset.openDataset(dataset)) { - Variable v = ds.findVariable("DPT_height_above_ground"); - Assert.assertNotNull("DPT_height_above_ground", v); + Variable v = ds.findVariable("DPT_P0_L103_GLC0_height_above_ground"); + Assert.assertNotNull("DPT_P0_L103_GLC0_height_above_ground", v); Dimension d = v.getDimension(0); Assert.assertEquals(57, d.getLength()); } diff --git a/grib/src/test/java/ucar/nc2/grib/grib2/TestRotatedPole.java b/grib/src/test/java/ucar/nc2/grib/grib2/TestRotatedPole.java index 0973c536f0..dc7dbaf189 100644 --- a/grib/src/test/java/ucar/nc2/grib/grib2/TestRotatedPole.java +++ b/grib/src/test/java/ucar/nc2/grib/grib2/TestRotatedPole.java @@ -104,7 +104,7 @@ public void testRapNative() throws Exception { Assert.assertEquals(36.0, projVar.findAttribute("grid_north_pole_latitude").getNumericValue().doubleValue(), DELTA); // check data variable - Variable dataVar = nc.findVariable("TMP_surface"); + Variable dataVar = nc.findVariable("TMP_P0_L100_GLC0_surface"); Assert.assertNotNull(dataVar); Assert.assertEquals("RotatedLatLon32769_Projection", dataVar.findAttribute("grid_mapping").getStringValue()); Assert.assertEquals("K", dataVar.findAttribute("units").getStringValue());