1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-15 23:20:06 +02:00

👌 Shell tweaks, fix ComposerWindow async issue

This commit is contained in:
2022-09-29 19:08:40 +02:00
parent ffffcad84b
commit 5ebafdb4e3
8 changed files with 53 additions and 35 deletions

View File

@@ -31,7 +31,7 @@ class SystemShellTest: XCTestCase {
func test_system_shell_can_buffer_output() async {
var bits: [String] = []
let shellOutput = try! await Shell.attach(
let (_, shellOutput) = try! await Shell.attach(
"php -r \"echo 'Hello world' . PHP_EOL; usleep(200); echo 'Goodbye world';\"",
didReceiveOutput: { incoming in
bits.append(incoming.out)