Skip to content

Commit 3f3c3c9

Browse files
just switch asyncio context
1 parent faf2cf4 commit 3f3c3c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/resource-usage-tracker/tests/unit/with_dbs/test_background_task_periodic_heartbeat_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ async def test_process_event_functions(
133133

134134
for _ in range(app_settings.RESOURCE_USAGE_TRACKER_MISSED_HEARTBEAT_COUNTER_FAIL):
135135
await check_running_services(initialized_app)
136-
await asyncio.sleep(1)
136+
await asyncio.sleep(0)
137137
# NOTE: As we are doing check that the modified field needs to be older then some
138138
# threshold, we need to make this field artificaly older in this test
139139
with postgres_db.connect() as con:

0 commit comments

Comments
 (0)