From 9ffd473884a57acae0ac5d16caf8da5f79a1b53c Mon Sep 17 00:00:00 2001 From: heyaim <223061694+heyaim@users.noreply.github.com> Date: Tue, 3 Nov 2026 13:54:33 -0600 Subject: [PATCH] Isolate metadata cleanup tests from shared prekey storage Three metadata controller tests now inject successful prekey cleanup. Their completion and retry assertions no longer depend on the shared prekey store. Dedicated prekey failure tests remain unchanged. --- bitchatTests/ChatViewModelTests.swift | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bitchatTests/ChatViewModelTests.swift b/bitchatTests/ChatViewModelTests.swift index da03c67f..9d63d76b 100644 --- a/bitchatTests/ChatViewModelTests.swift +++ b/bitchatTests/ChatViewModelTests.swift @@ -2173,7 +2173,8 @@ struct ChatViewModelPanicTests { wipeGossip: { wipe(2) }, wipeGroups: { wipe(3) }, wipeBoard: { wipe(4) }, - wipeEvents: { wipe(5) } + wipeEvents: { wipe(5) }, + wipePrekeys: { true } ) let recovery = PanicRecoveryOperations( isPending: { pending }, @@ -2257,7 +2258,8 @@ struct ChatViewModelPanicTests { let metadata = PanicMetadataWipeOperations( wipeCourier: { wipe(0) }, wipeBridge: { wipe(1) }, wipeGossip: { wipe(2) }, wipeGroups: { wipe(3) }, - wipeBoard: { wipe(4) }, wipeEvents: { wipe(5) } + wipeBoard: { wipe(4) }, wipeEvents: { wipe(5) }, + wipePrekeys: { true } ) var pending = false var mediaAttempts = 0 @@ -2331,7 +2333,8 @@ struct ChatViewModelPanicTests { let metadata = PanicMetadataWipeOperations( wipeCourier: { wipe(0) }, wipeBridge: { wipe(1) }, wipeGossip: { wipe(2) }, wipeGroups: { wipe(3) }, - wipeBoard: { wipe(4) }, wipeEvents: { wipe(5) } + wipeBoard: { wipe(4) }, wipeEvents: { wipe(5) }, + wipePrekeys: { true } ) let recovery = PanicRecoveryOperations( isPending: { pending },