From 7d19ec0fa82e4efa05cc4af04a12b99b00e35169 Mon Sep 17 00:00:00 2001 From: schdwlk Date: Tue, 31 Mar 2020 14:26:29 +0200 Subject: [PATCH] Fixed tests --- test.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test.py b/test.py index 2bdee66..9e14434 100644 --- a/test.py +++ b/test.py @@ -140,8 +140,7 @@ def test_learnconsumerlist(httpserver): httpserver.expect_request( uri="/consumer", method='GET', - data="", - handler_type='permanent').respond_with_json( + data="").respond_with_json( ["10.69.42.1", "10.10.10.10", "10.20.30.40"]) url = httpserver.url_for("/") port = re.match(r"\W*http[^:]*\D*(\d+)", url).group(1) @@ -198,7 +197,6 @@ def test_updateconsumer(httpserver): locator = consumerlocator.ConsumerLocator( uuid=generateduuid, communicator=comm) assert locator.currentconsumer is not None - locator.learnconsumerlist(); ret = locator.updateconsumer() assert ret == f"127.0.0.1:{port}"