mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-08-21 05:44:48 +00:00
fix test/e2e/streaming.ts
that was a race condition
This commit is contained in:
parent
3ce3c42f31
commit
a9b6cc1c00
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ describe('Streaming', () => {
|
|||
const fired = await waitFire(
|
||||
ayano, 'homeTimeline', // ayano:home
|
||||
() => api('notes/create', { text: 'bar', visibility: 'followers', replyId: note.id }, kyoko), // kyoko posts
|
||||
msg => msg.type === 'note' && msg.body.userId === kyoko.id && msg.body.reply.text === 'foo',
|
||||
msg => msg.type === 'note' && msg.body.userId === kyoko.id && msg.body.reply?.text === 'foo',
|
||||
);
|
||||
|
||||
assert.strictEqual(fired, true);
|
||||
|
|
Loading…
Add table
Reference in a new issue