test: serialize ComposerDraftStoreTests

The in-memory draft map is process-global; parallel tests were racing
replaceAllForTesting and under-counting during eviction checks.
This commit is contained in:
Taksh 2026-08-03 17:49:32 +05:30
parent 308ff65c4f
commit b9e15c233d

View File

@ -3,6 +3,7 @@ import Testing
@testable import bitchat
import BitFoundation
@Suite(.serialized)
struct ComposerDraftStoreTests {
/// Isolate each test from leftover in-memory drafts.
private func withCleanStore(_ body: () throws -> Void) rethrows {