-
-
Save ugexe/50e9b6ec0a8db2f85339dc39fc63dd6d to your computer and use it in GitHub Desktop.
Expected bytes received does not always match up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6; | |
use Test; | |
my $input = ("a" x 1000000).encode; | |
for 1..50 { | |
my $proc = run «cat -», :in, :out, :bin; | |
my $promise = start { | |
$proc.in.write: $input; | |
$proc.in.close; | |
} | |
await $promise; | |
is $proc.out.slurp(:bin,:close).bytes, $input.bytes; | |
} | |
done-testing; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
# Looks like you failed 15 tests of 50