Commit 58be01a7 authored by Andy Wilkinson's avatar Andy Wilkinson

Try to make Jest auto-configuration tests more robust

parent 468453b6
...@@ -147,6 +147,14 @@ public class JestAutoConfigurationTests { ...@@ -147,6 +147,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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment