jsoncomm: remove destination from send
Now that jsoncomm.Socket is using a connection-oriented socket, the destination in `socket.sendmsg` is ignored and thus can and should be dropped from the `jsoncomm.Socket.send` method. Adjust the tests accordingly.
This commit is contained in:
parent
43db8082bd
commit
785f843901
2 changed files with 4 additions and 4 deletions
|
|
@ -84,7 +84,7 @@ class TestUtilJsonComm(unittest.TestCase):
|
|||
assert msg[0] == data
|
||||
assert len(msg[1]) == 0
|
||||
|
||||
self.server.send(data, destination=msg[2])
|
||||
self.server.send(data)
|
||||
msg = self.client.recv()
|
||||
assert msg[0] == data
|
||||
assert len(msg[1]) == 0
|
||||
|
|
@ -154,7 +154,7 @@ class TestUtilJsonComm(unittest.TestCase):
|
|||
|
||||
def echo(socket):
|
||||
msg = socket.recv()
|
||||
socket.send(msg[0], destination=msg[2])
|
||||
socket.send(msg[0])
|
||||
loop.stop()
|
||||
|
||||
self.client.send({})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue