mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-08-22 07:16:03 +00:00
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:
parent
308ff65c4f
commit
b9e15c233d
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user