From 8c19d1a6694df62157e06e8b79277d3b8f002720 Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Mon, 19 Oct 2015 16:43:48 -0400 Subject: [PATCH] https://github.com/GoogleCloudPlatform/nodejs-docs-samples/pull/16#discussion_r42409820 --- datastore/query.js | 13 ++----------- test/datastore/testQuery.js | 2 +- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/datastore/query.js b/datastore/query.js index aa870877c38..c03f6d9536d 100644 --- a/datastore/query.js +++ b/datastore/query.js @@ -393,19 +393,10 @@ Query.prototype.testCursorPaging = function(callback) { }); }; -Query.prototype.testEventualConsistentQuery = function(callback) { - var query = this.ancestorQuery; - - // jshint unused:false +Query.prototype.testEventualConsistentQuery = function() { // [START eventual_consistent_query] - datastore.runQuery(query, function(err, entities) { - if (!err) { - // Entities found. - } - }); + // Read consistency cannot be specified in gcloud-node. // [END eventual_consistent_query] - - this.datastore.runQuery(query, callback); }; module.exports = Query; diff --git a/test/datastore/testQuery.js b/test/datastore/testQuery.js index 142ce5e4f9b..34b9f6f213d 100644 --- a/test/datastore/testQuery.js +++ b/test/datastore/testQuery.js @@ -148,7 +148,7 @@ describe('cursor paging', function() { }); }); -describe('eventually consistent query', function() { +describe.skip('eventually consistent query', function() { it('performs an ancestor query', function(done) { query.testEventualConsistentQuery(done); });