Skip to content

Commit 2aa63dd

Browse files
authored
Merge pull request #1605 from allencloud/update-test-status-code-from-500-to-400
update docker-py test status code from 500 to 400
2 parents cf68ebc + 717459d commit 2aa63dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/api_swarm_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def test_remove_main_node(self):
168168
with pytest.raises(docker.errors.APIError) as e:
169169
self.client.remove_node(node_id)
170170

171-
assert e.value.response.status_code == 500
171+
assert e.value.response.status_code >= 400
172172

173173
with pytest.raises(docker.errors.APIError) as e:
174174
self.client.remove_node(node_id, True)

0 commit comments

Comments
 (0)