doAsserts(fromMilliseconds, socket, false, 2000, 3000);
}
@Test
public void fromTimeouts() {
Timeouts timeouts = new Timeouts() { { portOpen = 2 * 1000; } };
RetryIfSocketNotYetOpen fromTimeouts = new RetryIfSocketNotYetOpen(alwaysFail, timeouts);
doAsserts(fromTimeouts, socket, false, 2000, 3000);
}