Skip to content

Commit 8c19d1a

Browse files
https://github.com/GoogleCloudPlatform/nodejs-docs-samples/pull/16#discussion_r42409820
1 parent 12e40e3 commit 8c19d1a

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

datastore/query.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -393,19 +393,10 @@ Query.prototype.testCursorPaging = function(callback) {
393393
});
394394
};
395395

396-
Query.prototype.testEventualConsistentQuery = function(callback) {
397-
var query = this.ancestorQuery;
398-
399-
// jshint unused:false
396+
Query.prototype.testEventualConsistentQuery = function() {
400397
// [START eventual_consistent_query]
401-
datastore.runQuery(query, function(err, entities) {
402-
if (!err) {
403-
// Entities found.
404-
}
405-
});
398+
// Read consistency cannot be specified in gcloud-node.
406399
// [END eventual_consistent_query]
407-
408-
this.datastore.runQuery(query, callback);
409400
};
410401

411402
module.exports = Query;

test/datastore/testQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ describe('cursor paging', function() {
148148
});
149149
});
150150

151-
describe('eventually consistent query', function() {
151+
describe.skip('eventually consistent query', function() {
152152
it('performs an ancestor query', function(done) {
153153
query.testEventualConsistentQuery(done);
154154
});

0 commit comments

Comments
 (0)