Skip to content

Commit

Permalink
Update clock test values to be powered by live clocks (#89)
Browse files Browse the repository at this point in the history
* wip

* wip
  • Loading branch information
stephencelis authored May 1, 2023
1 parent 3823389 commit ad0a6a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-clocks",
"state" : {
"revision" : "20b25ca0dd88ebfb9111ec937814ddc5a8880172",
"version" : "0.2.0"
"revision" : "f9acfa1a45f4483fe0f2c434a74e6f68f865d12d",
"version" : "0.3.0"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let package = Package(
dependencies: [
.package(url: "https://github.com/google/swift-benchmark", from: "0.1.0"),
.package(url: "https://github.com/pointfreeco/combine-schedulers", from: "0.1.0"),
.package(url: "https://github.com/pointfreeco/swift-clocks", from: "0.1.0"),
.package(url: "https://github.com/pointfreeco/swift-clocks", from: "0.3.0"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "0.8.0"),
],
targets: [
Expand Down
4 changes: 2 additions & 2 deletions Sources/Dependencies/DependencyValues/Clocks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@

private enum ContinuousClockKey: DependencyKey {
static let liveValue: any Clock<Duration> = ContinuousClock()
static let testValue: any Clock<Duration> = UnimplementedClock(name: "ContinuousClock")
static let testValue: any Clock<Duration> = UnimplementedClock(.continuous)
}

private enum SuspendingClockKey: DependencyKey {
static let liveValue: any Clock<Duration> = SuspendingClock()
static let testValue: any Clock<Duration> = UnimplementedClock(name: "SuspendingClock")
static let testValue: any Clock<Duration> = UnimplementedClock(.suspending)
}
}
#endif

0 comments on commit ad0a6a0

Please sign in to comment.