Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1163)

Unified Diff: filter/txnBuf/txnbuf_test.go

Issue 2007123002: datastore: Update AllocateIDs to take keys. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: filter/txnBuf/txnbuf_test.go
diff --git a/filter/txnBuf/txnbuf_test.go b/filter/txnBuf/txnbuf_test.go
index aabdc5ed839bbfd29a2361eb9de507968b20eb52..936598bb246b7607c8a877e828280387e0550eb4 100644
--- a/filter/txnBuf/txnbuf_test.go
+++ b/filter/txnBuf/txnbuf_test.go
@@ -130,7 +130,9 @@ func init() {
func mkds(data []*Foo) (under, over *count.DSCounter, ds datastore.Interface) {
c := memory.UseWithAppID(context.Background(), "something~else")
ds = datastore.Get(c)
- _, err := ds.AllocateIDs(ds.KeyForObj(data[0]), 100)
+
+ dataKey := ds.KeyForObj(data[0])
+ _, err := ds.AllocateIDs(ds.NewIncompleteKeys(100, dataKey.Kind(), dataKey.Parent())...)
if err != nil {
panic(err)
}
« no previous file with comments | « filter/txnBuf/state.go ('k') | impl/dummy/dummy.go » ('j') | impl/dummy/dummy.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698