From ba771b441183e53a5fa12b013ad3710ed2da32e1 Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Mon, 24 Jul 2017 09:56:44 +0300 Subject: [PATCH 1/1] Use single SCLOsgi.MODULE_REPOSITORY for ModelledSTSTest.run() refs #7378 Change-Id: Ib4a2b38cad5dbb275c2bdc69e89879878da72605 --- .../org/simantics/tests/modelled/utils/ModelledSTSTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/utils/ModelledSTSTest.java b/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/utils/ModelledSTSTest.java index 0c0d8682a..3ce1b0158 100644 --- a/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/utils/ModelledSTSTest.java +++ b/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/utils/ModelledSTSTest.java @@ -99,7 +99,8 @@ public class ModelledSTSTest { } public List run(List vars) throws IOException { - ModuleRepository repo = new ModuleRepository(SCLOsgi.SOURCE_REPOSITORY); +// ModuleRepository repo = new ModuleRepository(SCLOsgi.SOURCE_REPOSITORY); + ModuleRepository repo = SCLOsgi.MODULE_REPOSITORY; CommandSession session = null; try { // repo.setAdvisor(new ModuleCompilationOptionsAdvisor() { @@ -139,7 +140,7 @@ public class ModelledSTSTest { return result; } finally { // remember to flush this repository - repo.flush(); +// repo.flush(); Builtins.flush(); JavaModule.flush(); } -- 2.43.2