diff --git a/test/integration/test_create_dss_docker_image.py b/test/integration/test_create_dss_docker_image.py index 28e223a8..6e0b211b 100644 --- a/test/integration/test_create_dss_docker_image.py +++ b/test/integration/test_create_dss_docker_image.py @@ -160,5 +160,5 @@ def my_container(docker_socket_host): exit_code, output = c.exec_run(f"docker ps") output = output.decode("utf-8").strip() assert exit_code == 1 and \ - re.find(r"(Cannot connect|permissions denied)" in output and \ + re.match(r"(Cannot connect|permission denied)", output) and \ stat_before == socket_on_host.stat()