My suspicion is, that written as is the data cue in the epochs object is not emptied and the iter evoked method while loop has no breaking condition.
We have to make sure that in the testing case the data are consumed and a stop iteration is thrown.

On 11.07.2013, at 17:47, Martin Luessi <notifications@github.com> wrote:

> In mne/realtime/tests/test_mockclient.py:
> 
> > +picks = mne.fiff.pick_types(raw.info, meg='grad', eeg=False, eog=True,
> > +                                stim=True, exclude=raw.info['bads'])
> > +
> > +#def test_mockclient():
> > +
> > +rt_client = MockRtClient(raw)
> > +rt_epochs = RtEpochs(rt_client, event_id, tmin, tmax, n_epochs,
> > +                     consume_epochs=False, picks=picks)
> > +
> > +rt_epochs.start()
> > +rt_client.send_data(rt_epochs, tmin=0, tmax=2, buffer_size=1000)
> > +
> > +for ev in rt_epochs.iter_evoked():
> > +    x_mock = ev.data[None, ...]
> > +
> > +print "hi"
> From where do you want to terminate the loop? Can't you use break inside the loop? I.e., you stop after the desired number of epochs has been received.
> 
> —
> Reply to this email directly or view it on GitHub.