diff --git a/src/python_testing/TC_TIMESYNC_2_7.py b/src/python_testing/TC_TIMESYNC_2_7.py index 6fe19d0c5b6aad..8af89465bd3e5a 100644 --- a/src/python_testing/TC_TIMESYNC_2_7.py +++ b/src/python_testing/TC_TIMESYNC_2_7.py @@ -109,6 +109,8 @@ async def test_TC_TIMESYNC_2_7(self): if tz_list_size > 1: th_utc = utc_time_in_matter_epoch() tz = [tz_struct(offset=3600, validAt=0), tz_struct(offset=7200, validAt=th_utc+1e+7)] + ret = await self.send_set_time_zone_cmd(tz) + asserts.assert_true(ret.DSTOffsetRequired, "DSTOffsetRequired not set to true") self.print_step(12, "Send SetDSTOffset command") if tz_list_size > 1: diff --git a/src/python_testing/TC_TIMESYNC_2_8.py b/src/python_testing/TC_TIMESYNC_2_8.py index ac72977625f798..ce5ed2b4ec307c 100644 --- a/src/python_testing/TC_TIMESYNC_2_8.py +++ b/src/python_testing/TC_TIMESYNC_2_8.py @@ -107,10 +107,9 @@ async def test_TC_TIMESYNC_2_8(self): self.print_step(11, "Read LocalTime") local = await self.read_ts_attribute_expect_success(local_attr) - compare_time(received=local, offset=timedelta(), tolerance=timedelta(seconds=5)) + asserts.assert_equal(local, NullValue, "LocalTime cannot be calculated since DST is empty") self.print_step(12, "Send SetDSTOffset command") - th_utc = utc_time_in_matter_epoch() dst = [dst_struct(offset=3600, validStarting=0, validUntil=NullValue)] await self.send_set_dst_cmd(dst) @@ -165,11 +164,10 @@ async def test_TC_TIMESYNC_2_8(self): self.print_step(24, "Read LocalTime") if dst_list_size > 1: local = await self.read_ts_attribute_expect_success(local_attr) - compare_time(received=local, offset=timedelta(), tolerance=timedelta(seconds=5)) + asserts.assert_equal(local, NullValue, "LocalTime cannot be calculated since DST is empty") self.print_step(25, "Send SetDSTOffset command") - th_utc = utc_time_in_matter_epoch() - dst = [dst_struct(offset=3600, validStarting=0, validUntil=NullValue)] + dst = [dst_struct(offset=-3600, validStarting=0, validUntil=NullValue)] await self.send_set_dst_cmd(dst) self.print_step(26, "Read LocalTime") @@ -177,7 +175,6 @@ async def test_TC_TIMESYNC_2_8(self): compare_time(received=local, offset=timedelta(seconds=-3600), tolerance=timedelta(seconds=5)) self.print_step(27, "Send SetDSTOffset command") - th_utc = utc_time_in_matter_epoch() dst = [dst_struct(offset=0, validStarting=0, validUntil=NullValue)] await self.send_set_dst_cmd(dst)