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

Unified Diff: appengine/logdog/coordinator/coordinatorTest/archival.go

Issue 1910633006: LogDog: Support per-namespace expired archival. (Closed) Base URL: https://github.com/luci/luci-go@logdog-coordinator-svcdec
Patch Set: Update another test. 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/coordinatorTest/archival.go
diff --git a/appengine/logdog/coordinator/coordinatorTest/archival.go b/appengine/logdog/coordinator/coordinatorTest/archival.go
index 532a8c0930e97fa3670fe18d2de431a4d665b884..0d5042f0183e3fc8e04887b44265f68090172fd3 100644
--- a/appengine/logdog/coordinator/coordinatorTest/archival.go
+++ b/appengine/logdog/coordinator/coordinatorTest/archival.go
@@ -67,3 +67,10 @@ func (ap *ArchivalPublisher) StreamNames() []string {
sort.Strings(taskStreams)
return taskStreams
}
+
+// Clear clears recorded tasks.
+func (ap *ArchivalPublisher) Clear() {
+ ap.Lock()
+ defer ap.Unlock()
+ ap.tasks = nil
+}
« no previous file with comments | « appengine/logdog/coordinator/context.go ('k') | appengine/logdog/coordinator/endpoints/services/registerStream.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698