From a9b6cc1c00f30e1cc395bc90adda10ea78a03d91 Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 13 May 2025 14:56:44 +0100 Subject: [PATCH] fix `test/e2e/streaming.ts` that was a race condition --- packages/backend/test/e2e/streaming.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/test/e2e/streaming.ts b/packages/backend/test/e2e/streaming.ts index af905b4c91..38a826c4d3 100644 --- a/packages/backend/test/e2e/streaming.ts +++ b/packages/backend/test/e2e/streaming.ts @@ -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);