Closed aeruder closed 4 years ago
The bug here is that the test did not load Test2::IPC which si required for this to work. Add the use Test2::IPC
to the test file and it works fine.
To be clear, there is a race condition in the test that almost always produces the result you see, Test2::IPC makes test2 multi-process aware and fixes the race.
Still haven't managed to figure out the right fix here, but writing it down so I don't forget about the details or maybe someone else has an idea.
sample test:
Output when running test:
Note that the
test diag
line only shows up once - it gets skipped when run in a fork + subtest.