From c5292442297d4769ca3db6a9c814701df4ef0431 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 4 Dec 2025 16:03:28 -0500 Subject: [PATCH] test: fix failing test by adjusting the tests --- test/activitypub/privileges.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/activitypub/privileges.js b/test/activitypub/privileges.js index 695c2a2226..db6579ac5c 100644 --- a/test/activitypub/privileges.js +++ b/test/activitypub/privileges.js @@ -359,8 +359,8 @@ describe('Privilege masking', () => { await activitypub.actors.assertGroup([cid], { update: true }); // Ensure mask is gone from db - const exists = await db.exists(`cid:${cid}:privilegeMask`); - assert(!exists); + const memberCount = await db.setCount(`cid:${cid}:privilegeMask`); + assert.strictEqual(memberCount, 0); can = await privileges.categories.can('topics:create', cid, uid); assert(can, 'Privilege should be restored after mask removal.'); @@ -396,8 +396,8 @@ describe('Privilege masking', () => { await activitypub.actors.assertGroup([cid], { update: true }); // Ensure mask is gone from db - const exists = await db.exists(`cid:${cid}:privilegeMask`); - assert(!exists); + const memberCount = await db.setCount(`cid:${cid}:privilegeMask`); + assert.strictEqual(memberCount, 0); can = await privileges.categories.can('topics:create', cid, uid); assert(can, 'Privilege should be restored after mask removal.');