Skip to content

Commit ca14dfc

Browse files
wait with initial delay
1 parent 77186cb commit ca14dfc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests_integration/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import app.config as config
1313
import app.db_schema_migrations.yoyo_migration as yoyo_migration
1414
import app.main as main
15-
15+
import time
1616

1717
@pytest.fixture(scope="session")
1818
def postgres_docker_container() -> Generator[DockerContainer, None, None]:
@@ -26,6 +26,7 @@ def postgres_docker_container() -> Generator[DockerContainer, None, None]:
2626
ports=[5432],
2727
) as container:
2828
# wait for the postgres server to start
29+
time.sleep(0.5)
2930
for attempt in Retrying(
3031
stop=stop_after_delay(10), wait=wait_fixed(0.5), reraise=True
3132
):

0 commit comments

Comments
 (0)