Repository: incubator-ignite Updated Branches: refs/heads/ignite-961 b7b6dfcfc -> 488d2f648
#ignite-961: add messages for asserts in node js test. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/488d2f64 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/488d2f64 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/488d2f64 Branch: refs/heads/ignite-961 Commit: 488d2f64891c3059097a8b0aa995c5b6ee42f2b3 Parents: b7b6dfc Author: ivasilinets <ivasilin...@gridgain.com> Authored: Tue Jun 9 12:32:57 2015 +0300 Committer: ivasilinets <ivasilin...@gridgain.com> Committed: Tue Jun 9 12:32:57 2015 +0300 ---------------------------------------------------------------------- modules/nodejs/src/test/js/test-cache-api.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/488d2f64/modules/nodejs/src/test/js/test-cache-api.js ---------------------------------------------------------------------- diff --git a/modules/nodejs/src/test/js/test-cache-api.js b/modules/nodejs/src/test/js/test-cache-api.js index 494cedb..48ff011 100644 --- a/modules/nodejs/src/test/js/test-cache-api.js +++ b/modules/nodejs/src/test/js/test-cache-api.js @@ -128,7 +128,8 @@ function getNone(cache, entries, next) { function onGetAll(error, values) { assert(!error, error); assert(!values || !Object.keys(values).length); - next(); + + next(); } } @@ -136,9 +137,10 @@ function incorrectPut(cache, entry, next) { cache.put("key", entry, callback); function callback(error) { - assert(!!error); - console.error("Failed to put " + error); - assert(error.indexOf("Failed to find cache for given cache name") !== -1); + assert(!!error, "Do not get error for not exist cache"); + assert(error.indexOf("Failed to find cache for given cache name") !== -1, + "Incorrect message on not exist cache. " + error); + next(); } } \ No newline at end of file