test: adjust test runner detection in AP code

This commit is contained in:
Julian Lam
2025-03-02 21:58:46 -05:00
parent d948334713
commit 7ceb6d69ae
2 changed files with 2 additions and 2 deletions

View File

@@ -338,7 +338,7 @@ async function sendMessage(uri, id, type, payload, attempts = 1) {
const headers = await ActivityPub.sign(keyData, uri, payload);
ActivityPub.helpers.log(`[activitypub/send] ${uri}`);
if (process.env.CI === 'true') {
if (process.env.hasOwnProperty('CI')) {
ActivityPub._sent.set(payload.id, payload);
}