Try to make Jest auto-configuration tests more robust
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user