Skip to content

Commit 8d19735

Browse files
committed
Rename longLivingEffects to inFlightEffects. (#1076)
1 parent 9b78a70 commit 8d19735

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/ComposableArchitecture/TestSupport/TestStore.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
private let file: StaticString
174174
private let fromLocalAction: (LocalAction) -> Action
175175
private var line: UInt
176-
private var longLivingEffects: Set<LongLivingEffect> = []
176+
private var inFlightEffects: Set<LongLivingEffect> = []
177177
var receivedActions: [(action: Action, state: State)] = []
178178
private let reducer: Reducer<State, Action, Environment>
179179
private var snapshotState: State
@@ -215,9 +215,9 @@
215215
return
216216
effects
217217
.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) }
221221
)
222222
.map { .init(origin: .receive($0), file: action.file, line: action.line) }
223223

@@ -244,7 +244,7 @@
244244
file: self.file, line: self.line
245245
)
246246
}
247-
for effect in self.longLivingEffects {
247+
for effect in self.inFlightEffects {
248248
XCTFail(
249249
"""
250250
An effect returned for this action is still running. It must complete before the end of \

0 commit comments

Comments
 (0)