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);
}

View File

@@ -29,7 +29,7 @@ describe('ActivityPub integration', () => {
delete meta.config.activitypubEnabled;
});
describe.only('Outgoing AP logging for test runner', () => {
describe('Outgoing AP logging for test runner', () => {
it('should log an entry in ActivityPub._sent when .send is called', async () => {
const uuid = utils.generateUUID();
const uid = await user.create({ username: uuid });