Simpler way to pass the test when there are 503 errors

This commit is contained in:
Antonin Delpeuch 2018-01-03 19:03:26 +01:00
parent 32b7d2fa74
commit dae4ac1ce4

View File

@ -169,13 +169,13 @@ public class UrlFetchingTests extends RefineTest {
// Inspect rows
String ref_val = (String)project.rows.get(0).getCellValue(1).toString();
if (ref_val.contains("HTTP error 403") || ref_val.contains("HTTP error 503"))
if (ref_val.contains("HTTP error 403"))
return;
Assert.assertTrue(ref_val != "apple"); // just to make sure I picked the right column
for (int i = 1; i < 4; i++) {
System.out.println("value:" + project.rows.get(i).getCellValue(1));
// all random values should be equal due to caching
Assert.assertEquals(project.rows.get(i).getCellValue(1), ref_val);
Assert.assertEquals(project.rows.get(i).getCellValue(1).toString(), ref_val);
}
Assert.assertFalse(process.isRunning());
}