Fixed test_updateconsumer
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Scharnitzky Donát 2020-04-21 20:30:56 +02:00
parent 010e0d708f
commit 844341fdd0

View File

@ -265,10 +265,11 @@ def test_updateconsumer(httpserver):
currentconsumer=f"127.0.0.1:{port}",
uuid=generateduuid)
consumerlocator.KNOWNCONSUMER = f"127.0.0.1:{port}"
redisconn = redisconnector.RedisConnector()
locator = consumerlocator.ConsumerLocator(
uuid=generateduuid, communicator=comm,
redisconnector=redisconnector.RedisConnector())
assert locator.currentconsumer is not None
redisconnector=redisconn)
assert redisconn.currentconsumer is not None
ret = locator.updateconsumer()
assert ret == f"127.0.0.1:{port}"