1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-15 23:20:06 +02:00
This commit is contained in:
2022-10-04 17:57:05 +02:00
parent c26c491340
commit 953ccb3792
6 changed files with 52 additions and 93 deletions

View File

@@ -33,8 +33,8 @@ class SystemShellTest: XCTestCase {
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)
didReceiveOutput: { incoming, _ in
bits.append(incoming)
},
withTimeout: 2.0
)
@@ -50,7 +50,7 @@ class SystemShellTest: XCTestCase {
do {
_ = try await Shell.attach(
"php -r \"sleep(1);\"",
didReceiveOutput: { _ in },
didReceiveOutput: { _, _ in },
withTimeout: 0.1
)
} catch {