From 62b742e790ae62c358b0a1b8ee979dacc56abc90 Mon Sep 17 00:00:00 2001 From: Dom Sekotill Date: Fri, 20 May 2022 01:05:41 +0100 Subject: [PATCH] Add an assertion to Container.start() to monitor #11 --- behave_utils/docker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/behave_utils/docker.py b/behave_utils/docker.py index 5873d50..fb71198 100644 --- a/behave_utils/docker.py +++ b/behave_utils/docker.py @@ -343,6 +343,8 @@ class Container(Item): if self.is_running(): return docker_quiet(b"container", b"start", self.get_id()) + assert self.inspect().path('$.State.Status', str) != 'created', \ + "please report this at https://code.kodo.org.uk/dom/behave-utils/-/issues/11" def stop(self, rm: bool = False) -> None: """ -- GitLab