Skip to content

Commit 726a606

Browse files
cristianolongoodhlLocke
authored andcommitted
OWLWGTestCase: increase timeout from 10s to 60s
Partially cherry-picked from 44202b0 at https://github.com/cristianolongoodhl/openllet-jena4.10/tree/jena4.8.0
1 parent b31613c commit 726a606

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

module-owlapi/src/test/java/openllet/pellet/owlapi/test/OWLWGTestCase.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ public class OWLWGTestCase
5353

5454
public static Object _lock = new Object();
5555

56+
public static long TIMEOUT_SEC = 60;
57+
5658
/**
5759
* Ensure that test cases timeout after 10 seconds. This is in slightly broader than the one second timeout for each PelletOA3TestRunner.
5860
*/
5961
@Rule
60-
public Timeout timeout = new Timeout(10, TimeUnit.SECONDS);
62+
public Timeout timeout = new Timeout(TIMEOUT_SEC, TimeUnit.SECONDS);
6163

6264
/**
6365
* The dockerVM that run Travis is this time slow my i5-3570K
@@ -148,7 +150,7 @@ public void runTestCase()
148150
{
149151
KnowledgeBaseImpl._logger.setLevel(Level.WARNING);
150152

151-
final Collection<TestRunResult> results = new PelletTestRunner().run(_test, 1 * 1000 * _travisLowSpeed); // One second of timeout : really enough if every thing work well.
153+
final Collection<TestRunResult> results = new PelletTestRunner().run(_test, TIMEOUT_SEC * 1000 * _travisLowSpeed);
152154
for (final TestRunResult result : results)
153155
{
154156
final RunResultType resultType = result.getResultType();

0 commit comments

Comments
 (0)