Skip to content

Commit 94e7389

Browse files
authored
data value checking in TestPubSubSockets::test_conflate (#644)
* check each message value in test_messaging * check correctness with conflate False
1 parent ad9020c commit 94e7389

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

msgq/tests/test_messaging.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ def test_conflate(self):
5252
recvd_msgs = msgq.drain_sock_raw(sub_sock)
5353
if conflate:
5454
assert len(recvd_msgs) == 1
55+
assert recvd_msgs[0] == sent_msgs[-1]
5556
else:
56-
# TODO: compare actual data
5757
assert len(recvd_msgs) == len(sent_msgs)
58+
for rec_msg, sent_msg in zip(recvd_msgs, sent_msgs):
59+
assert rec_msg == sent_msg
5860

5961
def test_receive_timeout(self):
6062
sock = random_sock()

0 commit comments

Comments
 (0)