diff --git a/test.py b/test.py index 213477c..cc900eb 100644 --- a/test.py +++ b/test.py @@ -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}"