mirror of
https://github.com/apache/jclouds.git
synced 2025-02-06 18:19:03 +00:00
added another sshj test
This commit is contained in:
parent
45bf2b4248
commit
06f418c8ba
@ -87,6 +87,8 @@ public class SshjSshClientTest {
|
||||
}
|
||||
|
||||
public void testExceptionClassesRetry() {
|
||||
assert ssh.shouldRetry(new ConnectionException("Read timed out", new SSHException("Read timed out",
|
||||
new SocketTimeoutException("Read timed out"))));
|
||||
assert ssh.shouldRetry(new SocketTimeoutException("connect timed out"));
|
||||
assert ssh.shouldRetry(new TransportException("socket closed"));
|
||||
assert ssh.shouldRetry(new ConnectionException("problem"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user