private void pauseForClientToJoin(){
  Wait.pause(2000);
}

private void pauseForClientToJoin ( ) { Wait . pause ( 2000 ) ; }
the joined event fires when the first client handshake is processed . this pauses long enough to allow the rest of the client sockets to complete handshaking before making the client leave . without doing this subsequent socket handshakes that are processed could fire join events after departure events and then a departure event again . if you see failures in testclientmembershipeventsinserver , try increasing this timeout .
