Should there be a limit on the number of retries? If there is a code change that causes the connection establishment to fail after connection manager restart, then this test will infinitely loop instead of fail. Obviously the retry limit should be very generous to account for all sorts of testing environments, but seems worth considering.