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

Unified Diff: appengine/logdog/coordinator/logStream_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
« no previous file with comments | « appengine/logdog/coordinator/logStream.go ('k') | client/internal/logdog/butler/bundler/bundler.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/logdog/coordinator/logStream_test.go
diff --git a/appengine/logdog/coordinator/logStream_test.go b/appengine/logdog/coordinator/logStream_test.go
index 2963eff0f665551257ec8c195a36fbf27b856ee8..ef104f015d84674b564922d479d0c1c1e1550a84 100644
--- a/appengine/logdog/coordinator/logStream_test.go
+++ b/appengine/logdog/coordinator/logStream_test.go
@@ -98,7 +98,7 @@ func TestLogStream(t *testing.T) {
Name: "log/stream",
State: LSStreaming,
TerminalIndex: -1,
- Secret: bytes.Repeat([]byte{0x6F}, types.StreamSecretLength),
+ Secret: bytes.Repeat([]byte{0x6F}, types.PrefixSecretLength),
Created: now.UTC(),
ContentType: string(types.ContentTypeText),
}
@@ -155,7 +155,7 @@ func TestLogStream(t *testing.T) {
})
Convey(`Without a valid stream secret`, func() {
ls.Secret = nil
- So(ls.Validate(), ShouldErrLike, "invalid secret length")
+ So(ls.Validate(), ShouldErrLike, "invalid prefix secret length")
})
Convey(`Without a valid content type`, func() {
ls.ContentType = ""
« no previous file with comments | « appengine/logdog/coordinator/logStream.go ('k') | client/internal/logdog/butler/bundler/bundler.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698