Peter Steinbergerfix: stream subprocess outputfab3ae510 months agoHistory
20 lines · 547 B · Swift
RawDownload
import Foundationimport Testing @testable import CodexBarCore @Suitestruct SubprocessRunnerTests {    @Test    func readsLargeStdoutWithoutDeadlock() async throws {        let result = try await SubprocessRunner.run(            binary: "/usr/bin/python3",            arguments: ["-c", "print('x' * 1_000_000)"],            environment: ProcessInfo.processInfo.environment,            timeout: 5,            label: "python large stdout")         #expect(result.stdout.count >= 1_000_000)        #expect(result.stderr.isEmpty)    }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t