You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by se...@apache.org on 2020/03/19 15:09:01 UTC

[incubator-nlpcraft] branch NLPCRAFT-15 updated: WIP.

This is an automated email from the ASF dual-hosted git repository.

sergeykamov pushed a commit to branch NLPCRAFT-15
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/NLPCRAFT-15 by this push:
     new 4a865d3  WIP.
4a865d3 is described below

commit 4a865d39ee039c0c85962985adb4ceabed89a511
Author: Sergey Kamov <se...@apache.org>
AuthorDate: Thu Mar 19 18:08:55 2020 +0300

    WIP.
---
 src/test/scala/org/apache/nlpcraft/model/intent/dsl/NCDslTest.java | 2 ++
 .../nlpcraft/probe/mgrs/nlp/enrichers/NCEnricherBaseSpec.scala     | 7 ++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/test/scala/org/apache/nlpcraft/model/intent/dsl/NCDslTest.java b/src/test/scala/org/apache/nlpcraft/model/intent/dsl/NCDslTest.java
index db71b35..8ea9cba 100644
--- a/src/test/scala/org/apache/nlpcraft/model/intent/dsl/NCDslTest.java
+++ b/src/test/scala/org/apache/nlpcraft/model/intent/dsl/NCDslTest.java
@@ -44,6 +44,8 @@ class NCDslTest {
     @AfterEach
     void tearDown() throws NCException, IOException {
         cli.close();
+    
+        NCEmbeddedProbe.stop();
     }
 
     @Test
diff --git a/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/NCEnricherBaseSpec.scala b/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/NCEnricherBaseSpec.scala
index a283327..6418792 100644
--- a/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/NCEnricherBaseSpec.scala
+++ b/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/NCEnricherBaseSpec.scala
@@ -52,7 +52,12 @@ class NCEnricherBaseSpec {
     }
 
     @AfterEach
-    private[enrichers] def tearDown(): Unit = client.close()
+    private[enrichers] def tearDown(): Unit = {
+        if (client != null)
+            client.close()
+
+        NCEmbeddedProbe.stop()
+    }
 
     /**
       * Checks single variant.