Repository: incubator-ignite Updated Branches: refs/heads/ignite-961-promise f81fd6a1b -> a3ecc6c1b
#ignite-961-promise: fix tests. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/a3ecc6c1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/a3ecc6c1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/a3ecc6c1 Branch: refs/heads/ignite-961-promise Commit: a3ecc6c1bd523c81a2b1906bb81f6430808b1a95 Parents: f81fd6a Author: ivasilinets <ivasilin...@gridgain.com> Authored: Tue Jul 14 17:56:40 2015 +0300 Committer: ivasilinets <ivasilin...@gridgain.com> Committed: Tue Jul 14 17:56:40 2015 +0300 ---------------------------------------------------------------------- modules/nodejs/src/main/js/cache.js | 2 +- modules/nodejs/src/test/js/test-query.js | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a3ecc6c1/modules/nodejs/src/main/js/cache.js ---------------------------------------------------------------------- diff --git a/modules/nodejs/src/main/js/cache.js b/modules/nodejs/src/main/js/cache.js index 1aa96bb..654702d 100644 --- a/modules/nodejs/src/main/js/cache.js +++ b/modules/nodejs/src/main/js/cache.js @@ -306,7 +306,7 @@ Cache.prototype._createCommand = function(name) { QueryCursor = function(cache, qry, init, res) { this._qry = qry; this._cache = cache; - this._init = first; + this._init = init; this._res = res; } http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a3ecc6c1/modules/nodejs/src/test/js/test-query.js ---------------------------------------------------------------------- diff --git a/modules/nodejs/src/test/js/test-query.js b/modules/nodejs/src/test/js/test-query.js index 573c4ad..dcbb310 100644 --- a/modules/nodejs/src/test/js/test-query.js +++ b/modules/nodejs/src/test/js/test-query.js @@ -33,7 +33,6 @@ testSqlQuery = function() { var fullRes = []; function onQuery(cursor) { - console.log("PGE=" + cursor.page()); var page = cursor.page(); fullRes = fullRes.concat(page); @@ -89,7 +88,7 @@ testSqlFieldsQuery = function() { console.log("Result: " + JSON.stringify(fullRes)); - return ignite.cache("mycache").get("key"); + return ignite.cache("person").get("key"); } return cursor.nextPage().then(onQuery); @@ -136,10 +135,10 @@ testSqlFieldsGetAllQuery = function() { console.log("Result: " + JSON.stringify(fullRes)); - return ignite.cache("mycache").get("key"); + return ignite.cache("person").get("key"); } - return ignite.cache("person").query(qry).getAll().then(onQuery).then(function(){ + ignite.cache("person").query(qry).getAll().then(onQuery).then(function(){ TestUtils.testDone(); }) }).catch(function(err) {