diff --git a/src/main/java/com/rapiddweller/benerator/script/PolyglotContext.java b/src/main/java/com/rapiddweller/benerator/script/PolyglotContext.java index 13d533d9..360271b7 100644 --- a/src/main/java/com/rapiddweller/benerator/script/PolyglotContext.java +++ b/src/main/java/com/rapiddweller/benerator/script/PolyglotContext.java @@ -63,7 +63,7 @@ synchronized public Value evalScript(Context context, String text, String langua previousMissingObject = missingObject; } } - if (e.getMessage().contains(("NameError: "))) { + else if (e.getMessage().contains(("NameError: "))) { String missingObject = e.getMessage().replace("NameError: name '", "").replace("' is not defined", ""); if (!Objects.equals(previousMissingObject, missingObject)) { this.migrateBeneratorContext2GraalVM(context, language, missingObject); diff --git a/src/test/java/com/rapiddweller/benerator/engine/ShopDemoIntegrationExtDBTest.java b/src/test/java/com/rapiddweller/benerator/engine/ShopDemoIntegrationExtDBTest.java index 2cf2cf02..99dde68f 100644 --- a/src/test/java/com/rapiddweller/benerator/engine/ShopDemoIntegrationExtDBTest.java +++ b/src/test/java/com/rapiddweller/benerator/engine/ShopDemoIntegrationExtDBTest.java @@ -52,6 +52,7 @@ public void PrepareShopCtx() { /** * Demo postgres multi schema. */ + @Ignore("for manual internal testing") @Test public void DemoPostgresMultiSchema() { assumeTestActive("postgres");