The 'one server, two clients - first connection' test was flaky (very rarely though).
The original test had pretty strange behaviour, destroying the connections immediately on opening, and only expecting one connection for swarm1.
I think that the behaviour it was trying to test was that when there is 1 server and 2 clients, the clients connect to the server but not to each other, so I rewrote the test to be much more explicit about that. Good to double check that that is indeed the intention though.
The 'one server, two clients - first connection' test was flaky (very rarely though).
The original test had pretty strange behaviour, destroying the connections immediately on opening, and only expecting one connection for swarm1.
I think that the behaviour it was trying to test was that when there is 1 server and 2 clients, the clients connect to the server but not to each other, so I rewrote the test to be much more explicit about that. Good to double check that that is indeed the intention though.