Merge branch '2.0.x'
This commit is contained in:
commit
337d2d8e9a
@ -140,6 +140,14 @@ public class JestAutoConfigurationTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private JestResult execute(JestClient client, Action<? extends JestResult> action) {
|
private JestResult execute(JestClient client, Action<? extends JestResult> action) {
|
||||||
|
for (int i = 0; i < 2; i++) {
|
||||||
|
try {
|
||||||
|
return client.execute(action);
|
||||||
|
}
|
||||||
|
catch (IOException ex) {
|
||||||
|
// Continue
|
||||||
|
}
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
return client.execute(action);
|
return client.execute(action);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user