Skip to content

Commit 5f9659a

Browse files
committed
try to reduce flakiness
1 parent 2372d20 commit 5f9659a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/stream/test_epochs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)