Skip to content

Commit

Permalink
Using CONTAINER_TIMEOUT for container restart
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus committed Oct 25, 2023
1 parent 109b9b7 commit bbda394
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pytest_celery/api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from pytest_docker_tools.wrappers.container import wait_for_callable

from pytest_celery.api.container import CeleryTestContainer
from pytest_celery.defaults import CONTAINER_TIMEOUT

Check warning on line 13 in src/pytest_celery/api/base.py

View check run for this annotation

Codecov / codecov/patch

src/pytest_celery/api/base.py#L13

Added line #L13 was not covered by tests
from pytest_celery.defaults import RESULT_TIMEOUT


Expand Down Expand Up @@ -61,7 +62,7 @@ def kill(self, reload_container: bool = True) -> None:
self.container.reload()

def restart(self, reload_container: bool = True) -> None:
self.container.restart()
self.container.restart(timeout=CONTAINER_TIMEOUT)
if reload_container:
self.container.reload()
if self.app:
Expand Down

0 comments on commit bbda394

Please sign in to comment.