I think I've found a bug: in unblock mode if a transport posts in itself, an infinite loop occurs.
This is because TestTransport::get() does not empty the queue when dispatching envelopes to the worker. Maybe TestTransport::$queue should be put in another temporary array after being sent to worker.
Hi there!
I think I've found a bug: in
unblock
mode if a transport posts in itself, an infinite loop occurs.This is because
TestTransport::get()
does not empty the queue when dispatching envelopes to the worker. MaybeTestTransport::$queue
should be put in another temporary array after being sent to worker.Here is a reproducer. https://github.com/nikophil/zenstruck_messenger_test_bug_reproducer
Thanks for your work!