Skip to content

Commit 1b998c4

Browse files
authored
Remove Identified type from library (#1907)
* Remove `Identified` type from library It's now included in swift-identified-collections. * wip
1 parent e94ab1b commit 1b998c4

File tree

5 files changed

+32
-90
lines changed

5 files changed

+32
-90
lines changed

ComposableArchitecture.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.resolved

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ let package = Package(
2424
.package(url: "https://github.com/apple/swift-collections", from: "1.0.2"),
2525
.package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "0.7.0"),
2626
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "0.1.2"),
27-
.package(url: "https://github.com/pointfreeco/swift-identified-collections", from: "0.4.1"),
27+
.package(url: "https://github.com/pointfreeco/swift-identified-collections", from: "0.7.0"),
2828
.package(url: "https://github.com/pointfreeco/swiftui-navigation", from: "0.6.0"),
2929
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "0.5.0"),
3030
],

Sources/ComposableArchitecture/SwiftUI/Identified.swift

Lines changed: 0 additions & 60 deletions
This file was deleted.

Tests/ComposableArchitectureTests/TestStoreNonExhaustiveTests.swift

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,21 @@
103103
}
104104

105105
func testCancelInFlightEffects_Strict() async {
106-
let store = TestStore(
107-
initialState: 0,
108-
reducer: Reduce<Int, Bool> { _, action in
109-
.run { _ in try await Task.sleep(nanoseconds: NSEC_PER_SEC / 4) }
110-
}
111-
)
106+
await _withMainSerialExecutor {
107+
let store = TestStore(
108+
initialState: 0,
109+
reducer: Reduce<Int, Bool> { _, action in
110+
.run { _ in try await Task.sleep(nanoseconds: NSEC_PER_SEC / 4) }
111+
}
112+
)
112113

113-
let task = await store.send(true)
114-
await task.finish(timeout: NSEC_PER_SEC / 2)
115-
XCTExpectFailure {
116-
$0.compactDescription == "There were no in-flight effects to skip."
114+
let task = await store.send(true)
115+
await task.finish(timeout: NSEC_PER_SEC / 2)
116+
XCTExpectFailure {
117+
$0.compactDescription == "There were no in-flight effects to skip."
118+
}
119+
await store.skipInFlightEffects(strict: true)
117120
}
118-
await store.skipInFlightEffects(strict: true)
119121
}
120122

121123
func testCancelInFlightEffects_NonExhaustive() async {

0 commit comments

Comments
 (0)