Skip to content

Commit b60d26b

Browse files
committed
Fix older compiler version build issues
1 parent 2af80d3 commit b60d26b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Package@swift-5.9.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ let package = Package(
1515
dependencies: [
1616
// Dependencies declare other packages that this package depends on.
1717
.package(url: "https://github.com/toastersocks/SwiftCheck", .upToNextMajor(from: "0.13.0")),
18-
.package(url: "https://github.com/swiftlang/swift-testing", .upToNextMajor(from: "6.0.0")),
1918
],
2019
targets: [
2120
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
@@ -28,7 +27,6 @@ let package = Package(
2827
dependencies: [
2928
"Flow",
3029
"SwiftCheck",
31-
.product(name: "Testing", package: "swift-testing"),
3230
]
3331
),
3432
]

Tests/FlowTests/FlowTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if swift(>=6.0)
12
import Testing
23
@testable import Flow
34
import Foundation
@@ -30,3 +31,4 @@ final class FlowTests {
3031
}
3132
}
3233
}
34+
#endif

0 commit comments

Comments
 (0)