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

Unified Diff: appengine/logdog/coordinator/endpoints/services/loadStream_test.go

Issue 1910923002: LogDog: Add project namespace to service endpoint. (Closed) Base URL: https://github.com/luci/luci-go@logdog-project-coordinator-backend
Patch Set: Comments. Created 4 years, 8 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: appengine/logdog/coordinator/endpoints/services/loadStream_test.go
diff --git a/appengine/logdog/coordinator/endpoints/services/loadStream_test.go b/appengine/logdog/coordinator/endpoints/services/loadStream_test.go
index d15f823f7abae8f6dec329b1e1d8d0aa8c162cde..9b20c8901cc161c2b7b02925896b79077248d864 100644
--- a/appengine/logdog/coordinator/endpoints/services/loadStream_test.go
+++ b/appengine/logdog/coordinator/endpoints/services/loadStream_test.go
@@ -33,6 +33,9 @@ func TestLoadStream(t *testing.T) {
c, tc := testclock.UseTime(context.Background(), testclock.TestTimeUTC)
c = memory.Use(c)
+ fs := authtest.FakeState{}
+ c = auth.WithState(c, &fs)
+
svcStub := ct.Services{}
svcStub.InitConfig()
svcStub.ServiceConfig.Coordinator.ServiceAuthGroup = "test-services"
@@ -40,9 +43,6 @@ func TestLoadStream(t *testing.T) {
svr := New()
- fs := authtest.FakeState{}
- c = auth.WithState(c, &fs)
-
// Register a test stream.
desc := ct.TestLogStreamDescriptor(c, "foo/bar")
ls := ct.TestLogStream(c, desc)

Powered by Google App Engine
This is Rietveld 408576698