From 7445313206bc27d311e9617c17a2189d0e0d398f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Fri, 4 Aug 2023 09:08:07 +0200 Subject: [PATCH] Improve compatibility with docker 24.0.x The error message is now "Error from daemon: .... no such volume". So the colon after "Error" is now missing. Switch to a more specific part of the error message that appears to be more common across versions and variants --- tests/test_launcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_launcher.py b/tests/test_launcher.py index f46d171..d963232 100644 --- a/tests/test_launcher.py +++ b/tests/test_launcher.py @@ -133,11 +133,11 @@ def test_launcher_cleanes_up_volumes_from_image( vol_name = mounts[0].name assert ( - "Error:" + "no such volume" in host.run_expect( [1, 125], f"{container_runtime.runner_binary} volume inspect {vol_name}", - ).stderr + ).stderr.lower() )