Skip to content

Commit 745edc8

Browse files
boaz0shin-
authored andcommitted
Update assert in test_create_with_restart_policy
In moby/moby#30870 a new error message is displayed if the container is restarting. To make "test_create_with_restart_policy" pass against the above change, the test checks that the error message contains "You cannot remove " instead of "You cannot remove a running container" Signed-off-by: Boaz Shuster <[email protected]>
1 parent 7bfb547 commit 745edc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/api_container_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_create_with_restart_policy(self):
122122
self.client.remove_container(id)
123123
err = exc.exception.explanation
124124
self.assertIn(
125-
'You cannot remove a running container', err
125+
'You cannot remove ', err
126126
)
127127
self.client.remove_container(id, force=True)
128128

0 commit comments

Comments
 (0)