File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Tests/ComposableArchitectureTests Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -95,23 +95,23 @@ final class StoreLifetimeTests: BaseTCATestCase {
95
95
await self . fulfillment ( of: [ effectFinished] , timeout: 0.5 )
96
96
}
97
97
98
- func testStoreDeinit_RunningEffect( ) async {
99
- let effectFinished = self . expectation ( description: " Effect finished " )
100
- do {
101
- let store = await Store < Void , Void > ( initialState: ( ) ) {
102
- Reduce { state, _ in
103
- . run { _ in
104
- try ? await Task . never ( )
105
- effectFinished. fulfill ( )
98
+ func testStoreDeinit_RunningEffect( ) async {
99
+ let effectFinished = self . expectation ( description: " Effect finished " )
100
+ do {
101
+ let store = await Store < Void , Void > ( initialState: ( ) ) {
102
+ Reduce { state, _ in
103
+ . run { _ in
104
+ try ? await Task . never ( )
105
+ effectFinished. fulfill ( )
106
+ }
106
107
}
107
108
}
109
+ await store. send ( ( ) )
110
+ _ = store
108
111
}
109
- await store. send ( ( ) )
110
- _ = store
111
- }
112
112
113
- await self . fulfillment ( of: [ effectFinished] , timeout: 0.5 )
114
- }
113
+ await self . fulfillment ( of: [ effectFinished] , timeout: 0.5 )
114
+ }
115
115
116
116
@MainActor
117
117
func testStoreDeinit_RunningCombineEffect( ) async {
You can’t perform that action at this time.
0 commit comments