jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Turli <notificati...@github.com>
Subject Re: [jclouds] Don't retry unsafe HTTP methods in case of an IOException (#744)
Date Tue, 12 May 2015 08:26:18 GMT
> @@ -197,4 +221,29 @@ void testDisallowsExcessiveRetries() throws InterruptedException,
IOException, S
>        assertEquals(handler.shouldRetryRequest(command, response), false); // Failure
6
>     }
>  
> +   private void testDisallowsExcessiveRetriesOnException(HttpCommand command) {
> +      IOException response = new IOException();
> +
> +      assertEquals(handler.shouldRetryRequest(command, response), true); // Failure
1

is there a way to refactor that using a loop? or something from assertj?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/744/files#r30113568
Mime
View raw message