Skip to content

Commit

Permalink
https://github.com/GoogleCloudPlatform/nodejs-docs-samples/pull/16#di…
Browse files Browse the repository at this point in the history
…scussion_r42409820
  • Loading branch information
stephenplusplus committed Oct 19, 2015
1 parent 12e40e3 commit 8c19d1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
13 changes: 2 additions & 11 deletions datastore/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion test/datastore/testQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 8c19d1a

Please sign in to comment.