Skip to content

Commit

Permalink
Use sync sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
TheByronHimes committed Feb 7, 2024
1 parent 4c5240a commit 1d8fa11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

"""Shared fixtures"""
import asyncio
from time import sleep

import pytest
from hexkit.providers.akafka.testutils import KafkaFixture, get_kafka_fixture
Expand Down Expand Up @@ -54,4 +55,4 @@ def populate_db(reset_db, consumer, config, kafka_fixture: KafkaFixture):
loop.run_until_complete(
asyncio.wait_for(consumer.event_subscriber.run(forever=False), timeout=10)
)
loop.run_until_complete(asyncio.sleep(0.25))
sleep(0.25)

0 comments on commit 1d8fa11

Please sign in to comment.