Chromium Code Reviews| Index: impl/memory/datastore_test.go |
| diff --git a/impl/memory/datastore_test.go b/impl/memory/datastore_test.go |
| index 54ded94a0599fd44739ed928f138e8ae90493a7f..78db288afb90f582e255451677260a9bc2a86297 100644 |
| --- a/impl/memory/datastore_test.go |
| +++ b/impl/memory/datastore_test.go |
| @@ -685,11 +685,15 @@ func TestNewDatastore(t *testing.T) { |
| t.Parallel() |
| Convey("Can get and use a NewDatastore", t, func() { |
| - ds, err := NewDatastore("aid", "ns") |
| - So(err, ShouldBeNil) |
| + c := useGI(useGID(context.Background(), func(mod *globalInfoData) { |
| + mod.appID = "aid" |
| + mod.fqAppID = "dev~aid" |
| + })) |
| + c = infoS.Get(c).MustNamespace("ns") |
|
iannucci
2016/04/29 19:02:34
I don't think I like that packages other than 'mem
dnj
2016/04/29 19:08:07
Sure, done.
|
| + ds := NewDatastore(infoS.Get(c)) |
| k := ds.MakeKey("Something", 1) |
| - So(k.AppID(), ShouldEqual, "aid") |
| + So(k.AppID(), ShouldEqual, "dev~aid") |
| So(k.Namespace(), ShouldEqual, "ns") |
| type Model struct { |