From 7a7643cfeba5760e428155f984d885de36e08ce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scharnitzky=20Don=C3=A1t?= Date: Tue, 31 Mar 2020 12:24:53 +0200 Subject: [PATCH] See if currentconsumer is null after init --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.py b/test.py index f475ed0..2bdee66 100644 --- a/test.py +++ b/test.py @@ -197,9 +197,9 @@ def test_updateconsumer(httpserver): consumerlocator.KNOWNCONSUMER = f"127.0.0.1:{port}" locator = consumerlocator.ConsumerLocator( uuid=generateduuid, communicator=comm) + assert locator.currentconsumer is not None locator.learnconsumerlist(); ret = locator.updateconsumer() - assert locator.currentconsumer is not None assert ret == f"127.0.0.1:{port}"