Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Sources/DependenciesTestSupport/TestTrait.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#if compiler(>=6.1)
@_documentation(visibility: private)
public struct _DependenciesTrait: TestScoping, TestTrait, SuiteTrait {
let updateValues: @Sendable (inout DependencyValues) throws -> Void
let updateValues: @Sendable (inout DependencyValues) async throws -> Void

@TaskLocal static var isRoot = true

Expand All @@ -20,7 +20,7 @@
if Self.isRoot {
$0 = DependencyValues()
}
try updateValues(&$0)
try await updateValues(&$0)
} operation: {
try await Self.$isRoot.withValue(false) {
try await function()
Expand Down Expand Up @@ -123,7 +123,7 @@
/// ```
///
public static func dependencies(
_ updateValues: @escaping @Sendable (inout DependencyValues) throws -> Void
_ updateValues: @escaping @Sendable (inout DependencyValues) async throws -> Void
) -> Self {
Self(updateValues: updateValues)
}
Expand Down