Kaydet (Commit) 2aa63dd9 authored tarafından Joffrey F's avatar Joffrey F Kaydeden (comit) GitHub

Merge pull request #1605 from allencloud/update-test-status-code-from-500-to-400

update docker-py test status code from 500 to 400
...@@ -168,7 +168,7 @@ class SwarmTest(BaseAPIIntegrationTest): ...@@ -168,7 +168,7 @@ class SwarmTest(BaseAPIIntegrationTest):
with pytest.raises(docker.errors.APIError) as e: with pytest.raises(docker.errors.APIError) as e:
self.client.remove_node(node_id) self.client.remove_node(node_id)
assert e.value.response.status_code == 500 assert e.value.response.status_code >= 400
with pytest.raises(docker.errors.APIError) as e: with pytest.raises(docker.errors.APIError) as e:
self.client.remove_node(node_id, True) self.client.remove_node(node_id, True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment