Skip to content

Commit e08fa01

Browse files
authoredSep 23, 2024··
Postgres startup delay config (#200)
* startup delay * upgrade twine * ajuste da varenv
1 parent ff6aaf1 commit e08fa01

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ coverage==7.4.1
22
black==24.2.0
33
flake8==7.0.0
44
build==1.0.3
5-
twine==4.0.2
5+
twine==5.1.1
66

77
boto3==1.34.33
88
pony==0.7.17

‎serpens/testgres.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
database = None
1212
schema = None
13+
testgres_startup_delay = int(os.getenv("TESTGRES_STARTUP_DELAY", 1))
1314

1415

1516
def docker_shell(cmd, output=True):
@@ -59,7 +60,7 @@ def docker_init():
5960
docker_start()
6061

6162
while docker_pg_isready():
62-
time.sleep(1)
63+
time.sleep(testgres_startup_delay)
6364

6465
docker_pg_user_path()
6566
port = docker_port()

0 commit comments

Comments
 (0)
Please sign in to comment.