diff --git a/test/regridder_tests.jl b/test/regridder_tests.jl index 62a8b166a..a492c7e8b 100644 --- a/test/regridder_tests.jl +++ b/test/regridder_tests.jl @@ -352,8 +352,8 @@ end for date in date0test date0 = DateTime(date, dateformat"yyyymmdd") sst_data = Regridder.truncate_dataset(date0, time_start, time_end, sst_data_all, REGRID_DIR, "test", comms_ctx) - nds = NCDataset(sst_data, "r") - new_dates = nds["time"][:] + ds_truncated = NCDataset(sst_data, "r") + new_dates = ds_truncated["time"][:] date_start = date0 + Dates.Second(time_start) date_end = date0 + Dates.Second(time_start + time_end) @@ -380,7 +380,7 @@ end #@test nds["time"][1] == ds["time"][start_id] #@test last(nds["time"][:]) == ds["time"][end_id] - close(nds) + close(ds_truncated) end close(ds)