Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates variable utcTime to utcTime2 #33831

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
andy31415 marked this conversation as resolved.
Show resolved Hide resolved

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
Loading