diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 94073d2f2..f5c639692 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -44,15 +44,16 @@ jobs: ports: # Maps tcp port 6379 on service container to the host - 6379:6379 - steps: - name: Increase max_connections run: | docker exec -i postgres bash << EOF sed -i -e 's/max_connections = 100/max_connections = 10000/' /var/lib/postgresql/data/postgresql.conf - EOF \ - && docker restart my_postgres_container \ - && sleep 5 + EOF + steps: + - name: Restart postgres + run: | + docker restart --time 0 my_postgres_container && sleep 5 - uses: actions/checkout@v4 # with: