refactor(runtime): capture-first in HandleWriteAsync; assert no handler leak on resubscribe; fix stale comment
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user