refactor(runtime): capture-first in HandleWriteAsync; assert no handler leak on resubscribe; fix stale comment

This commit is contained in:
Joseph Doherty
2026-06-07 10:31:20 -04:00
parent 98259ab026
commit 6b36eff2d3
2 changed files with 8 additions and 5 deletions
@@ -215,6 +215,8 @@ public sealed class DriverInstanceActorTests : RuntimeActorTestBase
reply.ReferenceCount.ShouldBe(2);
driver.SubscribeCount.ShouldBe(2);
// Old handler must have been detached before the new one was attached — no leak.
driver.OnDataChangeSubscriberCount.ShouldBe(1);
}
/// <summary>Verifies that subscribing to a non-ISubscribable driver replies with failure.</summary>