test: catch error in failing test

This commit is contained in:
Barış Soner Uşaklı
2025-08-26 12:04:58 -04:00
parent fa1985bb17
commit 69a6c1502f

View File

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