Simpler way to pass the test when there are 503 errors
This commit is contained in:
parent
32b7d2fa74
commit
dae4ac1ce4
@ -169,13 +169,13 @@ public class UrlFetchingTests extends RefineTest {
|
|||||||
|
|
||||||
// Inspect rows
|
// Inspect rows
|
||||||
String ref_val = (String)project.rows.get(0).getCellValue(1).toString();
|
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;
|
return;
|
||||||
Assert.assertTrue(ref_val != "apple"); // just to make sure I picked the right column
|
Assert.assertTrue(ref_val != "apple"); // just to make sure I picked the right column
|
||||||
for (int i = 1; i < 4; i++) {
|
for (int i = 1; i < 4; i++) {
|
||||||
System.out.println("value:" + project.rows.get(i).getCellValue(1));
|
System.out.println("value:" + project.rows.get(i).getCellValue(1));
|
||||||
// all random values should be equal due to caching
|
// 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());
|
Assert.assertFalse(process.isRunning());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user