From 80589eb69c3abc3612dab5ffb60099aa82906557 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 14 Apr 2026 13:39:41 -0400 Subject: [PATCH] fix: more surprising shit from AI written test file --- test/activitypub/blocklists.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/activitypub/blocklists.js b/test/activitypub/blocklists.js index 84cb0debdb..cc06da8ec7 100644 --- a/test/activitypub/blocklists.js +++ b/test/activitypub/blocklists.js @@ -11,14 +11,16 @@ const install = require('../../src/install'); const activitypub = require('../../src/activitypub'); describe('ActivityPub blocklists', () => { - before(async () => { + before(async function () { meta.config.activitypubEnabled = 1; meta.config.activitypubAllowLoopback = 1; await install.giveWorldPrivileges(); + this.getHandler = request.get; }); - after(() => { + after(function () { delete meta.config.activitypubEnabled; + request.get = this.getHandler; }); describe('blocklists.list()', () => {