From 654aa18d096a13c771a194bb4a6f02c27b0af3e7 Mon Sep 17 00:00:00 2001 From: grossmj Date: Fri, 2 Feb 2018 22:14:50 +0800 Subject: [PATCH] Fix get_port test. --- tests/controller/test_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/controller/test_node.py b/tests/controller/test_node.py index dd51a6ac..7a860850 100644 --- a/tests/controller/test_node.py +++ b/tests/controller/test_node.py @@ -517,8 +517,8 @@ def test_get_port(node): assert port.port_number == 0 port = node.get_port(1, 0) assert port.adapter_number == 1 - with pytest.raises(aiohttp.web.HTTPNotFound): - port = node.get_port(42, 0) + port = node.get_port(42, 0) + assert port is None def test_parse_node_response(node, async_run):