einhverfr has asked for the wisdom of the Perl Monks concerning the following question:
I have some integration tests I am trying to write for an AnyEvent test loop which uses Coro to avoid deadlocks when I send data to Etcd using Net::Etcd. This means that the tests which introspect the event happen inside a Coro unblock_sub call.
Everything mostly works except for the fact that I don't always get all the test output.
My working theory is that the initial events run and schedule coros which get run after. These then run, in order etc. But I suspect that somewhere along the line the output is truncated.
Has anyone here seen a similar problem testing AnyEvent/Coro apps?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Seemingly Truncated Test Output with Coro, AnyEvent and Test2::V0
by GrandFather (Saint) on Nov 13, 2023 at 04:42 UTC | |
by einhverfr (Friar) on Nov 15, 2023 at 03:25 UTC | |
by NERDVANA (Priest) on Nov 15, 2023 at 11:36 UTC |