Increasing to 10 second sleep because of Travis
In Travis these tests are occasionally failing https://travis-ci.org/OpenRefine/OpenRefine/jobs/3896227 which is probably due to the CPU demand spike placed with createProcess.
This commit is contained in:
parent
34cddb61a2
commit
057b64fcc2
@ -144,8 +144,8 @@ public class DataExtensionTests extends RefineTest {
|
|||||||
process.startPerforming(pm);
|
process.startPerforming(pm);
|
||||||
Assert.assertTrue(process.isRunning());
|
Assert.assertTrue(process.isRunning());
|
||||||
try {
|
try {
|
||||||
// We have 4 rows so 4000 ms should be largely enough.
|
// This is 10 seconds because for some reason running this test on Travis takes longer.
|
||||||
Thread.sleep(5000);
|
Thread.sleep(10000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
Assert.fail("Test interrupted");
|
Assert.fail("Test interrupted");
|
||||||
}
|
}
|
||||||
@ -181,7 +181,8 @@ public class DataExtensionTests extends RefineTest {
|
|||||||
process.startPerforming(pm);
|
process.startPerforming(pm);
|
||||||
Assert.assertTrue(process.isRunning());
|
Assert.assertTrue(process.isRunning());
|
||||||
try {
|
try {
|
||||||
Thread.sleep(5000);
|
// This is 10 seconds because for some reason running this test on Travis takes longer.
|
||||||
|
Thread.sleep(10000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
Assert.fail("Test interrupted");
|
Assert.fail("Test interrupted");
|
||||||
}
|
}
|
||||||
@ -214,7 +215,8 @@ public class DataExtensionTests extends RefineTest {
|
|||||||
process.startPerforming(pm);
|
process.startPerforming(pm);
|
||||||
Assert.assertTrue(process.isRunning());
|
Assert.assertTrue(process.isRunning());
|
||||||
try {
|
try {
|
||||||
Thread.sleep(5000);
|
// This is 10 seconds because for some reason running this test on Travis takes longer.
|
||||||
|
Thread.sleep(10000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
Assert.fail("Test interrupted");
|
Assert.fail("Test interrupted");
|
||||||
}
|
}
|
||||||
@ -253,7 +255,8 @@ public class DataExtensionTests extends RefineTest {
|
|||||||
process.startPerforming(pm);
|
process.startPerforming(pm);
|
||||||
Assert.assertTrue(process.isRunning());
|
Assert.assertTrue(process.isRunning());
|
||||||
try {
|
try {
|
||||||
Thread.sleep(5000);
|
// This is 10 seconds because for some reason running this test on Travis takes longer.
|
||||||
|
Thread.sleep(10000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
Assert.fail("Test interrupted");
|
Assert.fail("Test interrupted");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user