Make reader1 API match reader2

This commit is contained in:
Marko Durkovic
2021-09-13 10:49:57 +02:00
parent 5d0aa8277c
commit 885900df39
3 changed files with 12 additions and 8 deletions
+2 -1
View File
@@ -254,7 +254,8 @@ def test_reader(tmp_path): # pylint: disable=too-many-statements
assert msgs[0][2] == b'MSGCONTENT5'
assert msgs[1][2] == b'MSGCONTENT10'
msgs = list(reader.messages(['/topic0']))
connections = [x for x in reader.connections.values() if x.topic == '/topic0']
msgs = list(reader.messages(connections))
assert len(msgs) == 1
assert msgs[0][2] == b'MSGCONTENT10'