Skip to content

Commit 65e0f67

Browse files
committed
message test: Use known, subscribed channel in sendMessage smoke test
This is the boring, common case that makes sense to exercise here.
1 parent c3a58ac commit 65e0f67

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/model/message_test.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,13 @@ void main() {
126126

127127
group('sendMessage', () {
128128
test('smoke', () async {
129+
final stream = eg.stream();
130+
final subscription = eg.subscription(stream);
129131
final store = eg.store(initialSnapshot: eg.initialSnapshot(
130132
queueId: 'fb67bf8a-c031-47cc-84cf-ed80accacda8'));
133+
await store.addStream(stream);
134+
await store.addSubscription(subscription);
131135
final connection = store.connection as FakeApiConnection;
132-
final stream = eg.stream();
133136
connection.prepare(json: SendMessageResult(id: 12345).toJson());
134137
await store.sendMessage(
135138
destination: StreamDestination(stream.streamId, eg.t('world')),

0 commit comments

Comments
 (0)