mirror of
https://github.com/block/buzz.git
synced 2026-12-01 05:32:24 +00:00
Preserve batch observer thread scope
Co-authored-by: Princess Donut <b238ea756dee4d98afa5883fc7f1de61eeabe65bf700e3a5a5a80db5e42e2c2b@buzz.block.builderlab.xyz> Signed-off-by: Princess Donut <b238ea756dee4d98afa5883fc7f1de61eeabe65bf700e3a5a5a80db5e42e2c2b@buzz.block.builderlab.xyz>
This commit is contained in:
@@ -379,7 +379,7 @@ void main() {
|
||||
seq: 2,
|
||||
channelId: channelId,
|
||||
turnId: 'turn-2',
|
||||
);
|
||||
)..['threadHeadId'] = null;
|
||||
final earlierFrame = _observerFrameJson(
|
||||
seq: 1,
|
||||
channelId: channelId,
|
||||
@@ -412,6 +412,9 @@ void main() {
|
||||
reason: 'batch receipt order must follow timestamp and sequence',
|
||||
);
|
||||
expect(frames[0].threadHeadId, 'thread-1');
|
||||
expect(frames[0].hasThreadScope, isTrue);
|
||||
expect(frames[1].threadHeadId, isNull);
|
||||
expect(frames[1].hasThreadScope, isTrue);
|
||||
|
||||
final state = container.read(observerSubscriptionProvider(key));
|
||||
expect(state.connection, ObserverConnectionState.open);
|
||||
|
||||
Reference in New Issue
Block a user