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}"