test: have actor assertion always use cache for tests

This commit is contained in:
Julian Lam
2024-07-10 13:47:23 -04:00
parent a81ef60930
commit ad05f06b00

View File

@@ -86,7 +86,7 @@ Actors.assert = async (ids, options = {}) => {
let actors = await Promise.all(ids.map(async (id) => {
try {
// winston.verbose(`[activitypub/actors] Processing ${id}`);
const actor = (typeof id === 'object' && id.hasOwnProperty('id')) ? id : await activitypub.get('uid', 0, id, { cache: false });
const actor = (typeof id === 'object' && id.hasOwnProperty('id')) ? id : await activitypub.get('uid', 0, id, { cache: process.env.CI === 'true' });
// Follow counts
try {