Skip to content

Node.js based forum software built for the modern web

test: catch error in failing test

Barış Soner Uşaklı69a6c1502fd6
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);