From 717459db0ed693f56009d24ae0ae1607705bc8b5 Mon Sep 17 00:00:00 2001 From: allencloud Date: Fri, 12 May 2017 10:25:40 +0800 Subject: [PATCH] update docker-py test status code from 500 to 400 Signed-off-by: allencloud --- tests/integration/api_swarm_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/api_swarm_test.py b/tests/integration/api_swarm_test.py index d06cac21bd..0a2f69f3c9 100644 --- a/tests/integration/api_swarm_test.py +++ b/tests/integration/api_swarm_test.py @@ -168,7 +168,7 @@ def test_remove_main_node(self): with pytest.raises(docker.errors.APIError) as e: 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: self.client.remove_node(node_id, True)