diff --git a/system-test/datastore.ts b/system-test/datastore.ts index 74b96e78..22814ced 100644 --- a/system-test/datastore.ts +++ b/system-test/datastore.ts @@ -886,6 +886,13 @@ async.each( assert.strictEqual(secondEntities!.length, 3); }); + it('should query the datastore with snapshot read', async () => { + const q = datastore.createQuery('Character').hasAncestor(ancestor); + const options = {readTime: timeBeforeDataCreation}; + const [entities] = await datastore.runQuery(q, options); + assert.strictEqual(entities!.length, 0); + }); + it('should not go over a limit', async () => { const limit = 3; const q = datastore