lib: make can_seek_ns_from_origin logic use `can_seek_forward` property of iterator
[babeltrace.git] / tests / data / plugins / flt.utils.trimmer / bt_plugin_trimmer_test.py
index 3a37b32963fc2444a0a796bca73566f7224288b4..a59ea9bd1bebf432ea6fbb78356b960ac3d1f441 100644 (file)
@@ -2,7 +2,7 @@ import bt2
 
 
 class TheIteratorOfAllEvil(bt2._UserMessageIterator):
-    def __init__(self, port):
+    def __init__(self, config, port):
         tc, sc, ec1, ec2, params = port.user_data
         trace = tc()
         stream = trace.create_stream(sc)
@@ -32,6 +32,7 @@ class TheIteratorOfAllEvil(bt2._UserMessageIterator):
             se_msg,
         ]
         self._at = 0
+        config.can_seek_forward = True
 
     def _user_seek_beginning(self):
         self._at = 0
This page took 0.023764 seconds and 4 git commands to generate.