Skip to content

Commit

Permalink
Improve compatibility with docker 24.0.x
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dirkmueller authored and dcermak committed Aug 7, 2023
1 parent 091cb3e commit 7445313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)


Expand Down

0 comments on commit 7445313

Please sign in to comment.