Files
swift-composable-architectu…/Tests/ComposableArchitectureTests/Internal/BaseTCATestCase.swift
Stephen Celis 890d2ee96f Address effect cancellation sendability (#3326)
* Address effect cancellation sendability

* fix

* wip

* wip
2024-08-30 09:15:35 -07:00

17 lines
435 B
Swift

@_spi(Internals) @_spi(Logging) import ComposableArchitecture
import XCTest
class BaseTCATestCase: XCTestCase {
override func tearDown() async throws {
try await super.tearDown()
_cancellationCancellables.withValue { [description = "\(self)"] in
XCTAssertEqual($0.count, 0, description)
$0.removeAll()
}
await MainActor.run {
Logger.shared.isEnabled = false
Logger.shared.clear()
}
}
}