File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Sources/ComposableArchitecture/TestSupport Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 173
173
private let file : StaticString
174
174
private let fromLocalAction : ( LocalAction ) -> Action
175
175
private var line : UInt
176
- private var longLivingEffects : Set < LongLivingEffect > = [ ]
176
+ private var inFlightEffects : Set < LongLivingEffect > = [ ]
177
177
var receivedActions : [ ( action: Action , state: State ) ] = [ ]
178
178
private let reducer : Reducer < State , Action , Environment >
179
179
private var snapshotState : State
215
215
return
216
216
effects
217
217
. on (
218
- starting: { [ weak self] in self ? . longLivingEffects . insert ( effect) } ,
219
- completed: { [ weak self] in self ? . longLivingEffects . remove ( effect) } ,
220
- disposed: { [ weak self] in self ? . longLivingEffects . remove ( effect) }
218
+ starting: { [ weak self] in self ? . inFlightEffects . insert ( effect) } ,
219
+ completed: { [ weak self] in self ? . inFlightEffects . remove ( effect) } ,
220
+ disposed: { [ weak self] in self ? . inFlightEffects . remove ( effect) }
221
221
)
222
222
. map { . init( origin: . receive( $0) , file: action. file, line: action. line) }
223
223
244
244
file: self . file, line: self . line
245
245
)
246
246
}
247
- for effect in self . longLivingEffects {
247
+ for effect in self . inFlightEffects {
248
248
XCTFail (
249
249
"""
250
250
An effect returned for this action is still running. It must complete before the end of \
You can’t perform that action at this time.
0 commit comments