Skip to content

Commit

Permalink
Updates variable utcTime to utcTime2 (#33831)
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-marquez-csa authored Oct 30, 2024
1 parent 83e2db5 commit 7e0634c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/python_testing/TC_VALCC_4_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,17 +172,17 @@ async def test_TC_VALCC_4_4(self):
pass

self.step(11)
utcTime = await self.read_single_attribute_check_success(endpoint=0, cluster=Clusters.Objects.TimeSynchronization, attribute=Clusters.TimeSynchronization.Attributes.UTCTime)
utcTime2 = await self.read_single_attribute_check_success(endpoint=0, cluster=Clusters.Objects.TimeSynchronization, attribute=Clusters.TimeSynchronization.Attributes.UTCTime)

asserts.assert_true(utcTime is not NullValue, "OpenDuration is null")
asserts.assert_true(utcTime2 is not NullValue, "OpenDuration is null")

self.step(12)
auto_close_time_dut = await self.read_valcc_attribute_expect_success(endpoint=endpoint, attribute=attributes.AutoCloseTime)

asserts.assert_true(auto_close_time_dut is not NullValue, "AutoCloseTime is null")
asserts.assert_greater_equal(auto_close_time_dut, (utcTime + ((defaultOpenDuration - 5) * 1000000)),
asserts.assert_greater_equal(auto_close_time_dut, (utcTime2 + ((defaultOpenDuration - 5) * 1000000)),
"AutoCloseTime is not in the expected range")
asserts.assert_less_equal(auto_close_time_dut, (utcTime + (defaultOpenDuration * 1000000)),
asserts.assert_less_equal(auto_close_time_dut, (utcTime2 + (defaultOpenDuration * 1000000)),
"AutoCloseTime is not in the expected range")

self.step(13)
Expand Down

0 comments on commit 7e0634c

Please sign in to comment.