Commit 15810521 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2922] Cleaner way to extract lname from msgq

parent af91bbf6
......@@ -280,7 +280,7 @@ class MsgQTest(unittest.TestCase):
# We should notify about new cliend when we register it
self.__msgq.register_socket(sock)
lname = list(self.__msgq.lnames.keys())[0] # Steal the lname
lname = self.__msgq.fd_to_lname[1] # Steal the lname
self.assertEqual([('connected', {'client': lname})], notifications)
notifications.clear()
......@@ -313,7 +313,7 @@ class MsgQTest(unittest.TestCase):
# Register and subscribe. Notifications for these are in above test.
self.__msgq.register_socket(sock)
lname = list(self.__msgq.lnames.keys())[0] # Steal the lname
lname = self.__msgq.fd_to_lname[1] # Steal the lname
self.__msgq.process_command_subscribe(sock, {'group': 'G',
'instance': '*'},
None)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment