Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

fix(audit_log): stop the retention loop in the ticker cadence test (#4308)

AnonymousLesserPanda91228c923970
diff --git a/internal/application/service/audit_log_retention_test.go b/internal/application/service/audit_log_retention_test.go
index bad184ba2..78ccb3c74 100644
--- a/internal/application/service/audit_log_retention_test.go
+++ b/internal/application/service/audit_log_retention_test.go
@@ -255,6 +255,7 @@ func TestAuditLogRetentionRunner_PurgesOnTickerCadence(t *testing.T) {
svc := &purgeCountingService{}
r := retentionRunnerWithImmediateStartup(svc, 30)
+ r.started.Store(true)
go r.runLoopWithoutStartupDelay()
time.Sleep(100 * time.Millisecond)
r.Stop()