]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Use single SCLOsgi.MODULE_REPOSITORY for ModelledSTSTest.run() 49/749/1
authorjsimomaa <jani.simomaa@gmail.com>
Mon, 24 Jul 2017 06:56:44 +0000 (09:56 +0300)
committerjsimomaa <jani.simomaa@gmail.com>
Mon, 24 Jul 2017 06:56:44 +0000 (09:56 +0300)
refs #7378

Change-Id: Ib4a2b38cad5dbb275c2bdc69e89879878da72605

bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/utils/ModelledSTSTest.java

index 0c0d8682a5706688c6031f8f68698823390ccb89..3ce1b01580c7415d517f712ca499cf4670c8aa45 100644 (file)
@@ -99,7 +99,8 @@ public class ModelledSTSTest {
     }
     
     public List<CommandSessionVariable> run(List<CommandSessionVariable> 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();
         }