From 963236916c3b84186da820105945e21e0d77de51 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 1 May 2020 23:01:15 -0500 Subject: [PATCH] Fix another race in august tests (#35054) --- tests/components/august/mocks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/components/august/mocks.py b/tests/components/august/mocks.py index 0e1e9866c1d..c471dfca2a9 100644 --- a/tests/components/august/mocks.py +++ b/tests/components/august/mocks.py @@ -107,11 +107,11 @@ async def _create_august_with_devices( def lock_return_activities_side_effect(access_token, device_id): lock = _get_device_detail("locks", device_id) return [ - _mock_lock_operation_activity(lock, "lock", 0), # There is a check to prevent out of order events - # so we set the doorclosed event in the future + # so we set the doorclosed & lock event in the future # to prevent a race condition where we reject the event - # because it happened before the dooropen event. + # because it happened before the dooropen & unlock event. + _mock_lock_operation_activity(lock, "lock", 2000), _mock_door_operation_activity(lock, "doorclosed", 2000), ]