You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ss...@apache.org on 2013/09/13 12:42:15 UTC
git commit: wait longer for reasoning to finish,
it usually anyways takes longer than 100ms
Updated Branches:
refs/heads/develop 6e97cc082 -> f4a909a12
wait longer for reasoning to finish, it usually anyways takes longer than 100ms
Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/f4a909a1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/f4a909a1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/f4a909a1
Branch: refs/heads/develop
Commit: f4a909a1202b9ab99f87a734a8c2f252703d8492
Parents: 6e97cc0
Author: Sebastian Schaffert <ss...@apache.org>
Authored: Fri Sep 13 12:42:12 2013 +0200
Committer: Sebastian Schaffert <ss...@apache.org>
Committed: Fri Sep 13 12:42:12 2013 +0200
----------------------------------------------------------------------
.../KiWiRDFSchemaRepositoryConnectionTest.java | 26 ++++++++++----------
1 file changed, 13 insertions(+), 13 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/f4a909a1/libraries/kiwi/kiwi-reasoner/src/test/java/org/apache/marmotta/kiwi/reasoner/test/sesame/KiWiRDFSchemaRepositoryConnectionTest.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-reasoner/src/test/java/org/apache/marmotta/kiwi/reasoner/test/sesame/KiWiRDFSchemaRepositoryConnectionTest.java b/libraries/kiwi/kiwi-reasoner/src/test/java/org/apache/marmotta/kiwi/reasoner/test/sesame/KiWiRDFSchemaRepositoryConnectionTest.java
index 90bf0f9..c5a0854 100644
--- a/libraries/kiwi/kiwi-reasoner/src/test/java/org/apache/marmotta/kiwi/reasoner/test/sesame/KiWiRDFSchemaRepositoryConnectionTest.java
+++ b/libraries/kiwi/kiwi-reasoner/src/test/java/org/apache/marmotta/kiwi/reasoner/test/sesame/KiWiRDFSchemaRepositoryConnectionTest.java
@@ -58,14 +58,14 @@ import static org.junit.Assert.fail;
public class KiWiRDFSchemaRepositoryConnectionTest extends RDFSchemaRepositoryConnectionTest {
public Logger log = LoggerFactory.getLogger(this.getClass());
-
+
private final KiWiConfiguration config;
private KiWiReasoningSail rsail;
public KiWiRDFSchemaRepositoryConnectionTest(KiWiConfiguration config) {
this.config = config;
}
-
+
/* (non-Javadoc)
* @see org.openrdf.repository.RepositoryConnectionTest#createRepository()
*/
@@ -101,15 +101,15 @@ public class KiWiRDFSchemaRepositoryConnectionTest extends RDFSchemaRepositoryCo
@Override
public void commit() throws RepositoryException {
super.commit();
-
+
// wait for the reasoner to finish
try {
- while(rsail.getEngine().isRunning()) {
- log.info("sleeping for 100ms to let engine finish processing ... ");
- Thread.sleep(100);
- }
- Thread.sleep(100);
- log.info("sleeping for 100ms to let engine finish processing ... ");
+ while(rsail.getEngine().isRunning()) {
+ log.info("sleeping for 500ms to let engine finish processing ... ");
+ Thread.sleep(500);
+ }
+ log.info("sleeping for 100ms to let engine finish processing ... ");
+ Thread.sleep(100);
} catch (InterruptedException e) {
throw new RepositoryException("Could not finish reasoning", e);
}
@@ -118,7 +118,7 @@ public class KiWiRDFSchemaRepositoryConnectionTest extends RDFSchemaRepositoryCo
}
};
}
-
+
@Override
@Before
public void setUp() throws Exception {
@@ -127,7 +127,7 @@ public class KiWiRDFSchemaRepositoryConnectionTest extends RDFSchemaRepositoryCo
log.info("Setting up reasoning for RDFS");
rsail.addProgram("rdfs", this.getClass().getResourceAsStream("rdfs.skwrl"));
}
-
+
@Override
@Test
public void testExplicitFlag() throws Exception {
@@ -135,7 +135,7 @@ public class KiWiRDFSchemaRepositoryConnectionTest extends RDFSchemaRepositoryCo
testCon.begin();
testCon.add(bob, RDF.TYPE, RDFS.RESOURCE);
testCon.commit();
-
+
super.testExplicitFlag();
}
@@ -144,7 +144,7 @@ public class KiWiRDFSchemaRepositoryConnectionTest extends RDFSchemaRepositoryCo
@Ignore("in KiWi, inferencing is triggered on commit")
public void testInferencerQueryDuringTransaction() throws Exception {
}
-
+
@Override
@Test
@Ignore("in KiWi, inferencing is triggered on commit")