Skip to content

Commit d71c791

Browse files
committed
Fix testMergeErrorRedirection test case to prevent function from blocking forever writing to an output that is ignored
1 parent c49630c commit d71c791

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Tests/SubprocessTests/PipeConfigurationTests.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -912,13 +912,6 @@ struct PipeConfigurationTests {
912912
#if os(Windows)
913913
let config =
914914
pipe(
915-
swiftFunction: { input, output, err in
916-
_ = try await output.write("Swift function output\n")
917-
_ = try await err.write("Swift function error\n")
918-
return 0
919-
}
920-
)
921-
| process(
922915
executable: .name("powershell.exe"),
923916
arguments: Arguments(["-Command", "'shell stdout'; [Console]::Error.WriteLine('shell stderr')"]),
924917
options: .mergeErrors
@@ -929,13 +922,6 @@ struct PipeConfigurationTests {
929922
#else
930923
let config =
931924
pipe(
932-
swiftFunction: { input, output, err in
933-
_ = try await output.write("Swift function output\n")
934-
_ = try await err.write("Swift function error\n")
935-
return 0
936-
}
937-
)
938-
| process(
939925
executable: .name("sh"),
940926
arguments: ["-c", "echo 'shell stdout'; echo 'shell stderr' >&2"],
941927
options: .mergeErrors

0 commit comments

Comments
 (0)