Skip to content

Commit

Permalink
Update tests after IO change.
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch committed Apr 4, 2024
1 parent b3a3812 commit 12fd3aa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ packages:
toit-rs485:
url: github.com/toitware/toit-rs485
name: rs485
version: 1.3.0
hash: fc9d92d11ccb95816a0029140585b2a9bddc93a7
version: 1.3.1
hash: d27ecefa1ee5acd6fdc23472712d046c5eca1693
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ environment:
dependencies:
rs485:
url: github.com/toitware/toit-rs485
version: ^1.3.0
version: ^1.3.1
4 changes: 2 additions & 2 deletions tests/package.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ packages:
toit-rs485:
url: github.com/toitware/toit-rs485
name: rs485
version: 1.3.0
hash: fc9d92d11ccb95816a0029140585b2a9bddc93a7
version: 1.3.1
hash: d27ecefa1ee5acd6fdc23472712d046c5eca1693
6 changes: 4 additions & 2 deletions tests/test_server.toit
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,17 @@ with-test-server --logger/log.Logger --mode/string [block]:
stderr-bytes := #[]
task::
stdout /pipe.OpenPipe := server-fork-data[1]
while chunk := stdout.read:
reader := stdout.in
while chunk := reader.read:
logger.debug chunk.to-string.trim
stdout-bytes += chunk
full-str := stdout-bytes.to-string
if full-str.contains "About to start server":
server-is-running.set true
task::
stderr /pipe.OpenPipe := server-fork-data[2]
while chunk := stderr.read:
reader := stderr.in
while chunk := reader.read:
logger.debug chunk.to-string.trim
stderr-bytes += chunk

Expand Down

0 comments on commit 12fd3aa

Please sign in to comment.