Skip to content

Commit 81944d8

Browse files
committed
wait for flush before unsub lol
1 parent 274ca89 commit 81944d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/pubsub/tests/pubsub.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ for (const PubSub of PubSubCtors) {
131131

132132
await pubsub.publish('hello', 'world');
133133

134+
// let the events flush before checking
135+
await flush();
136+
134137
await unsub();
135138

136139
await pubsub.publish('hello', 'world');

0 commit comments

Comments
 (0)