From 69a6c1502fd62f283951800ec848bad0f10ea67c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 26 Aug 2025 12:04:58 -0400 Subject: [PATCH] test: catch error in failing test --- test/activitypub/notes.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/activitypub/notes.js b/test/activitypub/notes.js index b018fb9788..a00116fbb5 100644 --- a/test/activitypub/notes.js +++ b/test/activitypub/notes.js @@ -479,7 +479,13 @@ describe('Notes', () => { console.log('2', Date.now() - start); const { activity } = helpers.mocks.create(note); console.log('3', Date.now() - start); - await activitypub.inbox.create({ body: activity }); + try { + await activitypub.inbox.create({ body: activity }); + } catch (err) { + console.log('error in test', err.stack); + assert(false); + } + console.log('4', Date.now() - start); assert(await posts.exists(id)); console.log('5', Date.now() - start);