Try to make Jest auto-configuration tests more robust
This commit is contained in:
parent
468453b66e
commit
58be01a790
|
@ -147,6 +147,14 @@ public class JestAutoConfigurationTests {
|
|||
}
|
||||
|
||||
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 {
|
||||
return client.execute(action);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue