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

Unified Diff: scheduler/appengine/catalog/catalog_test.go

Issue 2575383002: Add server/cache support to gaeconfig. (Closed)
Patch Set: Un-collapse. Created 3 years, 11 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
« no previous file with comments | « scheduler/appengine/catalog/catalog.go ('k') | tokenserver/appengine/certconfig/rpc_import_ca_configs.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scheduler/appengine/catalog/catalog_test.go
diff --git a/scheduler/appengine/catalog/catalog_test.go b/scheduler/appengine/catalog/catalog_test.go
index 4de165c7d5477288fac9e023c2fb2408e1228454..7a2295d3f4efe6814afdb0933a9bb6331480f492 100644
--- a/scheduler/appengine/catalog/catalog_test.go
+++ b/scheduler/appengine/catalog/catalog_test.go
@@ -12,8 +12,8 @@ import (
"golang.org/x/net/context"
"google.golang.org/api/pubsub/v1"
- "github.com/luci/luci-go/common/config"
memcfg "github.com/luci/luci-go/common/config/impl/memory"
+ "github.com/luci/luci-go/luci_config/server/cfgclient/backend/testconfig"
"github.com/luci/luci-go/scheduler/appengine/messages"
"github.com/luci/luci-go/scheduler/appengine/task"
@@ -173,7 +173,7 @@ func TestTaskMarshaling(t *testing.T) {
func TestConfigReading(t *testing.T) {
Convey("with mocked config", t, func() {
- ctx := config.SetImplementation(context.Background(), memcfg.New(mockedConfigs))
+ ctx := testconfig.WithCommonClient(context.Background(), memcfg.New(mockedConfigs))
cat := New("scheduler.cfg")
cat.RegisterTaskManager(fakeTaskManager{
name: "noop",
« no previous file with comments | « scheduler/appengine/catalog/catalog.go ('k') | tokenserver/appengine/certconfig/rpc_import_ca_configs.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698