From d120656d72d0fd22f775d8b42018d63bca384fb6 Mon Sep 17 00:00:00 2001 From: heyaim <223061694+heyaim@users.noreply.github.com> Date: Fri, 6 Nov 2026 14:44:25 -0600 Subject: [PATCH] Isolate composer draft tests from panic reset The synchronous draft-store tests now run on MainActor, matching panic reset. Suite serialization alone did not prevent panic tests in other suites from clearing drafts between saves and assertions. --- bitchatTests/Services/ComposerDraftStoreTests.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bitchatTests/Services/ComposerDraftStoreTests.swift b/bitchatTests/Services/ComposerDraftStoreTests.swift index d4f0a603..7ef444ee 100644 --- a/bitchatTests/Services/ComposerDraftStoreTests.swift +++ b/bitchatTests/Services/ComposerDraftStoreTests.swift @@ -3,7 +3,10 @@ import Testing @testable import bitchat import BitFoundation +// Keep synchronous store assertions on the same actor as panic reset. +// Suite serialization alone does not exclude panic tests in other suites. @Suite(.serialized) +@MainActor struct ComposerDraftStoreTests { /// Isolate each test from leftover in-memory drafts. private func withCleanStore(_ body: () -> Void) {