File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1099,7 +1099,7 @@ def test_epochs_with_more_events_than_buffer_size(
10991099 3 , name = mock_lsl_stream .name , source_id = mock_lsl_stream .source_id
11001100 ).connect (acquisition_delay = 0.1 )
11011101 sinfo = outlet_marker .get_sinfo ()
1102- event_stream = StreamLSL (2 , name = sinfo .name , source_id = sinfo .source_id ).connect (
1102+ event_stream = StreamLSL (10 , name = sinfo .name , source_id = sinfo .source_id ).connect (
11031103 acquisition_delay = 0.1
11041104 )
11051105 epochs = EpochsStream (
@@ -1124,6 +1124,7 @@ def test_epochs_with_more_events_than_buffer_size(
11241124 time .sleep (0.1 )
11251125 # wait for the event stream and data stream to buffer all events, so that a
11261126 # single acquire() call sees all 5 events at once and triggers the warning.
1127+ # The event_stream bufsize=10 ensures all 5 events are retained in its ringbuffer.
11271128 time .sleep (1.0 )
11281129 with pytest .warns (RuntimeWarning , match = "number of new epochs to add.*is greater" ):
11291130 epochs .acquire ()
You can’t perform that action at this time.
0 commit comments