test(grpc-data): A2 review N5 — the waiter test counts condition-queue waits only (red on revert: 19 vs ≤ 1)
This commit is contained in:
+2
-2
@@ -274,8 +274,8 @@ public sealed class GrpcDataConditionStreamTests
|
||||
await stream.Session.EnqueueValueProbeForTests();
|
||||
(await next).ShouldNotBeNull();
|
||||
}
|
||||
// Each value wakes the loop once; the idle condition wait must be reused, not re-registered every pass.
|
||||
(stream.Session.ConditionWaitsStartedForTests - before).ShouldBeLessThan(50);
|
||||
// Values wake the loop; the idle condition queue's wait must be reused, not re-registered on every pass.
|
||||
(stream.Session.ConditionWaitsStartedForTests - before).ShouldBeLessThanOrEqualTo(1);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user