mirror of
https://github.com/block/buzz.git
synced 2026-10-30 05:51:46 +00:00
Bind provider readiness wait duration
Signed-off-by: Carl <4ddaeec1f70e26699465b4f4d4a55a825abb6045d769a21d44551b15c1e81f93@buzz.block.builderlab.xyz>
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user