You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2021/03/24 04:51:50 UTC
[incubator-nlpcraft] branch NLPCRAFT-278 updated: Update
NCMetaSpec.scala
This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-278
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-278 by this push:
new 154a8c9 Update NCMetaSpec.scala
154a8c9 is described below
commit 154a8c943717deb514789621adb712d03bc4c1e8
Author: Aaron Radzinski <ar...@apache.org>
AuthorDate: Tue Mar 23 21:51:39 2021 -0700
Update NCMetaSpec.scala
---
.../src/test/scala/org/apache/nlpcraft/model/meta/NCMetaSpec.scala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/meta/NCMetaSpec.scala b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/meta/NCMetaSpec.scala
index c13fe37..cd78857 100644
--- a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/meta/NCMetaSpec.scala
+++ b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/meta/NCMetaSpec.scala
@@ -65,7 +65,7 @@ class NCMetaSpec extends NCRestSpec {
MetaHolder(userMeta, companyMeta)
}
- private def post(h: MetaHolder): Unit = {
+ private def runTest(h: MetaHolder): Unit = {
def convert(m: Meta): Meta = if (m == null) util.Collections.emptyMap() else m
// 1. We have to save all existing company's fields for following updates.
@@ -129,7 +129,7 @@ class NCMetaSpec extends NCRestSpec {
try {
// Sets company and user metadata.
- post(MetaHolder(m, m))
+ runTest(MetaHolder(m, m))
// It is not enough.
require(getClient.ask("a").isFailed)
@@ -141,7 +141,7 @@ class NCMetaSpec extends NCRestSpec {
require(getClient.ask("a").isOk)
}
finally {
- post(currUserCompMeta)
+ runTest(currUserCompMeta)
sys.remove("k1")
}