mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 21:52:31 +02:00
fix: move AP send logging earlier
This commit is contained in:
@@ -35,7 +35,7 @@ describe('ActivityPub integration', () => {
|
||||
const uid = await user.create({ username: uuid });
|
||||
await activitypub.send('uid', 0, [`https://localhost/uid/${uid}`], { id: `${nconf.get('url')}/activity/${uuid}`, foo: 'bar' });
|
||||
|
||||
assert(activitypub._sent.has(`https://localhost/activity/${uuid}`));
|
||||
assert(activitypub._sent.has(`${nconf.get('url')}/activity/${uuid}`));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -59,9 +59,7 @@ describe('FEPs', () => {
|
||||
cid,
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
assert.strictEqual(activitypub._sent.size, 1);
|
||||
}, 250);
|
||||
assert.strictEqual(activitypub._sent.size, 1);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user