We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d96208c commit 2e1f99bCopy full SHA for 2e1f99b
src/python_testing/TC_DEM_2_2.py
@@ -345,8 +345,10 @@ async def test_TC_DEM_2_2(self):
345
self.step("18")
346
time.sleep(10)
347
348
+ # Allow a little tolerance checking the duration returned in the event as CI tests can run "slower"
349
event_data = events_callback.wait_for_event_report(Clusters.DeviceEnergyManagement.Events.PowerAdjustEnd)
- 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)
352
asserts.assert_equal(event_data.cause, Clusters.DeviceEnergyManagement.Enums.CauseEnum.kNormalCompletion)
353
asserts.assert_greater(event_data.energyUse, 0)
354
0 commit comments