mirror of
https://github.com/nfstream/nfstream.git
synced 2026-05-22 03:03:29 +00:00
Improve tests.
This commit is contained in:
parent
4b01968efe
commit
4e16456eb3
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
2
tests.py
2
tests.py
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue