fix test on windows by adding a small delay to let server or client actions to propagate to the other end of the socket.