Kaydet (Commit) 717459db authored tarafından allencloud's avatar allencloud

update docker-py test status code from 500 to 400

Signed-off-by: 's avatarallencloud <allen.sun@daocloud.io>
üst 007ab677
...@@ -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