diff --git a/test/algorithm_test/FilterAlgorithm_test.py b/test/algorithm_test/FilterAlgorithm_test.py index 2a0b9833b655dd0bf3737c88c69d5844d726adce..cd7357e60de9ff200bce5eb2b83e534686d6586a 100644 --- a/test/algorithm_test/FilterAlgorithm_test.py +++ b/test/algorithm_test/FilterAlgorithm_test.py @@ -313,7 +313,7 @@ def test_get_nearest__oneday_average(): f = FilterAlgorithm(input_sample_period=60.0, output_sample_period=86400.0) step = f.get_filter_steps()[0] time = UTCDateTime("2020-08-20T01:00:00") - aligned = get_nearest_time(step=step, output_time=time) + aligned = get_nearest_time(step=step, output_time=time, left=False) # filter is average for day, should be first/last minute samples of 2020-08-20 assert_equal(aligned["data_start"], UTCDateTime("2020-08-20T00:00:00")) assert_equal(aligned["time"], UTCDateTime("2020-08-20T11:59:30"))