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

Unified Diff: milo/appengine/buildbot/pubsub_test.go

Issue 2575383002: Add server/cache support to gaeconfig. (Closed)
Patch Set: Created 4 years 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: milo/appengine/buildbot/pubsub_test.go
diff --git a/milo/appengine/buildbot/pubsub_test.go b/milo/appengine/buildbot/pubsub_test.go
index 40e64de740abe2e7ba065e06b445207d8dd994e8..486b414642c85d0725e6a1b681ad29c981aac646 100644
--- a/milo/appengine/buildbot/pubsub_test.go
+++ b/milo/appengine/buildbot/pubsub_test.go
@@ -20,12 +20,12 @@ import (
"github.com/luci/gae/impl/memory"
ds "github.com/luci/gae/service/datastore"
"github.com/luci/luci-go/common/clock/testclock"
- lucicfg "github.com/luci/luci-go/common/config"
memcfg "github.com/luci/luci-go/common/config/impl/memory"
"github.com/luci/luci-go/common/logging/gologger"
"github.com/luci/luci-go/milo/appengine/settings"
"github.com/luci/luci-go/server/auth"
"github.com/luci/luci-go/server/auth/authtest"
+ "github.com/luci/luci-go/server/config/testconfig"
"github.com/luci/luci-go/server/router"
"github.com/julienschmidt/httprouter"
@@ -432,7 +432,8 @@ func TestPubSub(t *testing.T) {
})
So(h.Code, ShouldEqual, 200)
Convey("And stores correctly", func() {
- c = lucicfg.SetImplementation(c, memcfg.New(aclConfgs))
+ c = testconfig.WithCommonClient(c, memcfg.New(aclConfgs))
+
err := settings.Update(c)
So(err, ShouldBeNil)
c = auth.WithState(c, &authtest.FakeState{

Powered by Google App Engine
This is Rietveld 408576698