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 2021/04/17 11:25:48 UTC
[incubator-nlpcraft] branch master updated: Test minor fixes.
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 4baca1d Test minor fixes.
4baca1d is described below
commit 4baca1d55915fdb309c5eb613b38b6f0d6cad245
Author: Sergey Kamov <sk...@gmail.com>
AuthorDate: Sat Apr 17 14:25:35 2021 +0300
Test minor fixes.
---
nlpcraft/src/test/scala/org/apache/nlpcraft/NCTestContext.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nlpcraft/src/test/scala/org/apache/nlpcraft/NCTestContext.scala b/nlpcraft/src/test/scala/org/apache/nlpcraft/NCTestContext.scala
index 42b140d..ef4efb8 100644
--- a/nlpcraft/src/test/scala/org/apache/nlpcraft/NCTestContext.scala
+++ b/nlpcraft/src/test/scala/org/apache/nlpcraft/NCTestContext.scala
@@ -146,7 +146,7 @@ abstract class NCTestContext {
protected def checkResult(req: String, expResp: String): Unit = {
val res = getClient.ask(req)
- assertTrue(res.isOk)
+ assertTrue(res.isOk, s"Unexpected result, error=${res.getResultError.orElse(null)}")
assertTrue(res.getResult.isPresent)
assertEquals(expResp, res.getResult.get)
}