Skip to content

Commit 2e1f99b

Browse files
committed
Allow a little tolerance checking the duration returned in the event as CI tests can run slower
1 parent d96208c commit 2e1f99b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/python_testing/TC_DEM_2_2.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,10 @@ async def test_TC_DEM_2_2(self):
345345
self.step("18")
346346
time.sleep(10)
347347

348+
# Allow a little tolerance checking the duration returned in the event as CI tests can run "slower"
348349
event_data = events_callback.wait_for_event_report(Clusters.DeviceEnergyManagement.Events.PowerAdjustEnd)
349-
asserts.assert_equal(event_data.duration, 10)
350+
asserts.assert_greater_equal(event_data.duration, 10)
351+
asserts.assert_less_equal(event_data.duration, 12)
350352
asserts.assert_equal(event_data.cause, Clusters.DeviceEnergyManagement.Enums.CauseEnum.kNormalCompletion)
351353
asserts.assert_greater(event_data.energyUse, 0)
352354

0 commit comments

Comments
 (0)