Improve tests.

This commit is contained in:
aouinizied 2019-10-18 23:37:25 +02:00
parent 4b01968efe
commit 4e16456eb3
2 changed files with 2 additions and 2 deletions

View file

@ -76,4 +76,4 @@ class Observer:
if self.packet_generator is not None:
for timestamp, packet in self.packet_generator:
packet_information = process_packet(timestamp, packet)
yield packet_information
yield packet_information

View file

@ -47,7 +47,7 @@ class TestMethods(unittest.TestCase):
capacity=128000,
inactive_timeout=maxsize,
active_timeout=maxsize)
exports = streamer.exports
exports = list(streamer)
exports_ground_truth = []
del streamer
self.assertEqual(exports, exports_ground_truth)