mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-11-01 07:53:26 +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
749e23b91e
commit
5ec02f75e9
@ -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