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

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


The following commit(s) were added to refs/heads/master by this push:
     new c6c9bbe8 Minor test fixes.
c6c9bbe8 is described below

commit c6c9bbe8fee13680702729abd820db32a0f89206
Author: Sergey Kamov <[email protected]>
AuthorDate: Thu Aug 25 20:56:58 2022 +0300

    Minor test fixes.
---
 .../nlpcraft/internal/conversation/NCConversationTimeoutSpec.scala      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/nlpcraft/src/test/scala/org/apache/nlpcraft/internal/conversation/NCConversationTimeoutSpec.scala
 
b/nlpcraft/src/test/scala/org/apache/nlpcraft/internal/conversation/NCConversationTimeoutSpec.scala
index 51918b05..2cc1ecb6 100644
--- 
a/nlpcraft/src/test/scala/org/apache/nlpcraft/internal/conversation/NCConversationTimeoutSpec.scala
+++ 
b/nlpcraft/src/test/scala/org/apache/nlpcraft/internal/conversation/NCConversationTimeoutSpec.scala
@@ -52,7 +52,7 @@ class NCConversationTimeoutSpec:
                 @NCIntent("intent=i term(e)~{# == 'test'}")
                 def onMatch(ctx: NCContext, im: NCIntentMatch, 
@NCIntentTerm("e") e: NCEntity): NCResult =
                     val conv = ctx.getConversation
-                    val res = 
NCResult(conv.getData.getOpt("key").getOrElse(EMPTY))
+                    val res = 
NCResult(conv.getData.get("key").getOrElse(EMPTY))
 
                     // For next calls.
                     conv.getData.put("key", VALUE)

Reply via email to