@@ -11,16 +11,15 @@ import Testing
1111 @preconcurrency import Glibc
1212#endif
1313
14- nonisolated ( nonsending)
15- func assertCommand(
16- _ arguments: [ String ] ,
17- stdout expected: ( ( ) -> String ) ? = nil ,
18- fileID: StaticString = #fileID,
19- file: StaticString = #filePath,
20- line: UInt = #line,
21- column: UInt = #column
22- ) async throws
23- {
14+ @MainActor
15+ func assertCommand(
16+ _ arguments: [ String ] ,
17+ stdout expected: ( ( ) -> String ) ? = nil ,
18+ fileID: StaticString = #fileID,
19+ file: StaticString = #filePath,
20+ line: UInt = #line,
21+ column: UInt = #column
22+ ) async throws {
2423 let output = try await withCapturedStdout {
2524 var command = try PFW . parseAsRoot ( arguments)
2625 if var command = command as? AsyncParsableCommand {
@@ -40,16 +39,15 @@ nonisolated(nonsending)
4039 )
4140}
4241
43- nonisolated ( nonsending)
44- func assertCommandThrows(
45- _ arguments: [ String ] ,
46- error: ( ( ) -> String ) ? = nil ,
47- fileID: StaticString = #fileID,
48- file: StaticString = #filePath,
49- line: UInt = #line,
50- column: UInt = #column
51- ) async
52- {
42+ @MainActor
43+ func assertCommandThrows(
44+ _ arguments: [ String ] ,
45+ error: ( ( ) -> String ) ? = nil ,
46+ fileID: StaticString = #fileID,
47+ file: StaticString = #filePath,
48+ line: UInt = #line,
49+ column: UInt = #column
50+ ) async {
5351 var thrownError : Error ?
5452 do {
5553 var command = try PFW . parseAsRoot ( arguments)
0 commit comments