Try to make Jest auto-configuration tests more robust

This commit is contained in:
Andy Wilkinson
2018-07-04 15:25:10 +01:00
parent 468453b66e
commit 58be01a790

View File

@@ -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);
}