Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Netclaw.Actors.Tests/Sessions/SessionLogActorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,13 @@ public async Task Dispatcher_writes_audit_and_diagnostic_to_same_session_log()
{
var dispatcher = SpawnDispatcher(Sys, basePath, timeProvider);

dispatcher.Tell(new TextOutput("audit-line") { SessionId = sessionId }, ActorRefs.NoSender);
// Buffered diagnostic first; the durable audit write below drains
// it synchronously (SessionLogActor.WriteDurable) — no dependence
// on the 1s FlushTick wall-clock timer, which is what made this
// test flaky on loaded Windows CI runners.
timeProvider.Advance(TimeSpan.FromMilliseconds(1));
dispatcher.Tell(new SessionLogDiagnostic(sessionId, "[2026-05-07T13:30:00.001+00:00] Diagnostic: provider sent request"), ActorRefs.NoSender);
dispatcher.Tell(new TextOutput("audit-line") { SessionId = sessionId }, ActorRefs.NoSender);

await AwaitAssertAsync(async () =>
{
Expand Down
Loading