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.
This commit is contained in:
heyaim 2026-11-03 13:54:33 -06:00
parent af392a7a19
commit 9ffd473884

View File

@ -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 },