See if currentconsumer is null after init
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build is failing

This commit is contained in:
Scharnitzky Donát 2020-03-31 12:24:53 +02:00
parent d47d2e8d97
commit 7a7643cfeb

View File

@ -197,9 +197,9 @@ def test_updateconsumer(httpserver):
consumerlocator.KNOWNCONSUMER = f"127.0.0.1:{port}" consumerlocator.KNOWNCONSUMER = f"127.0.0.1:{port}"
locator = consumerlocator.ConsumerLocator( locator = consumerlocator.ConsumerLocator(
uuid=generateduuid, communicator=comm) uuid=generateduuid, communicator=comm)
assert locator.currentconsumer is not None
locator.learnconsumerlist(); locator.learnconsumerlist();
ret = locator.updateconsumer() ret = locator.updateconsumer()
assert locator.currentconsumer is not None
assert ret == f"127.0.0.1:{port}" assert ret == f"127.0.0.1:{port}"