File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ extension AllTests.AnalyzeErrorTests {
192
192
#warning("Move this into a trait on @Test")
193
193
// See https://forums.swift.org/t/converting-xctest-invoketest-to-swift-testing/77692/4 for details
194
194
#endif
195
- var defaultDependencies : ( inout DependencyValues ) async throws -> Void {
195
+ var defaultDependencies : @ Sendable ( inout DependencyValues ) async throws -> Void {
196
196
{
197
197
$0. date. now = . t0
198
198
$0. environment. allowSocialPosts = { true }
Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ import Vapor
19
19
import PostgresNIO
20
20
21
21
22
- func withApp( _ setup: ( Application ) async throws -> Void = { _ in } ,
23
- _ updateValuesForOperation: ( inout DependencyValues ) async throws -> Void = { _ in } ,
24
- environment: Environment = . testing,
25
- _ test: ( Application ) async throws -> Void ) async throws {
22
+ func withApp(
23
+ _ setup: @Sendable ( Application) async throws -> Void = { _ in } ,
24
+ _ updateValuesForOperation: @Sendable ( inout DependencyValues ) async throws -> Void = { _ in } ,
25
+ environment: Environment = . testing,
26
+ _ test: @Sendable ( Application) async throws -> Void
27
+ ) async throws {
26
28
prepareDependencies {
27
29
$0. logger = . noop
28
30
}
You can’t perform that action at this time.
0 commit comments