Node.js based forum software built for the modern web
test: wait after post request
Barış Soner Uşaklı6431824216c1
diff --git a/test/activitypub/analytics.js b/test/activitypub/analytics.jsindex 0f6cd7af36..9b97980cd0 100644--- a/test/activitypub/analytics.js+++ b/test/activitypub/analytics.js@@ -128,7 +128,7 @@ describe('Analytics', () => {let counters;({ counters } = analytics.peek());const before = { ...counters };-+ const { setTimeout } = require('timers/promises');const id = `https://example.org/activity/${utils.generateUUID()}`;await controllers.activitypub.postInbox({body: {@@ -141,7 +141,7 @@ describe('Analytics', () => {},},}, { sendStatus: () => {} });-+ await setTimeout(2000);({ counters } = analytics.peek());const after = { ...counters };