Bind provider readiness wait duration

Signed-off-by: Carl <4ddaeec1f70e26699465b4f4d4a55a825abb6045d769a21d44551b15c1e81f93@buzz.block.builderlab.xyz>
This commit is contained in:
Carl
2026-08-28 11:58:54 -07:00
parent 9c66e92c9a
commit 5d7c606cb9

View File

@@ -2024,9 +2024,16 @@ void main() {
final container = _buildContainer(session: session);
addTearDown(container.dispose);
final stopwatch = Stopwatch()..start();
await container.read(channelsProvider.future);
await _waitUntil(() => session.queryBatches.length == 2);
stopwatch.stop();
expect(
stopwatch.elapsed,
greaterThanOrEqualTo(const Duration(milliseconds: 450)),
);
expect(stopwatch.elapsed, lessThan(const Duration(seconds: 2)));
expect(session.peakNeverEoseSubscriptions, 4);
expect(session.totalSubscribeCount, 5);
expect(session.activeChannels, ids.toSet());