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

Unified Diff: appengine/logdog/coordinator/endpoints/services/archiveStream_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/archiveStream_test.go
diff --git a/appengine/logdog/coordinator/endpoints/services/archiveStream_test.go b/appengine/logdog/coordinator/endpoints/services/archiveStream_test.go
index bd3d17af5865c0e8273fbda408af6f9d8aa8d27a..aecacf90b482a0c90312dc5e14cdf7a1a6ac7869 100644
--- a/appengine/logdog/coordinator/endpoints/services/archiveStream_test.go
+++ b/appengine/logdog/coordinator/endpoints/services/archiveStream_test.go
@@ -30,6 +30,9 @@ func TestArchiveStream(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"
@@ -39,9 +42,6 @@ func TestArchiveStream(t *testing.T) {
now := ds.RoundTime(tc.Now().UTC())
- fs := authtest.FakeState{}
- c = auth.WithState(c, &fs)
-
// Register a testing log stream with an archive tasked.
ls := ct.TestLogStream(c, ct.TestLogStreamDescriptor(c, "foo"))
ls.State = coordinator.LSArchiveTasked

Powered by Google App Engine
This is Rietveld 408576698