fix test/e2e/streaming.ts

that was a race condition
This commit is contained in:
dakkar 2025-05-13 14:56:44 +01:00
parent 3ce3c42f31
commit a9b6cc1c00

View file

@ -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);