Eunit: {node, ... instantiator broken in OTP-28.x

Looking at eunit/examples/eunit_examples.erl at master · richcarl/eunit · GitHub , it seems like eunit’s {node, Node, …} generator was expected to pass the full node name to the instantiator.

In OTP-27.x, this was true.

In OTP-28.x – when the new peer module was used, this was changed – the function now receives {Pid, WasNetStarted}. It’s not clear whether this change was intentional, or what the Pid refers to.

So: how does one receive the fully-qualified name of the new node, in order to use it in the tests?

Please verify if this PR resolves the issue: