Skip to content

Instantly share code, notes, and snippets.

@ugexe
Created June 17, 2017 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ugexe/50e9b6ec0a8db2f85339dc39fc63dd6d to your computer and use it in GitHub Desktop.
Save ugexe/50e9b6ec0a8db2f85339dc39fc63dd6d to your computer and use it in GitHub Desktop.
Expected bytes received does not always match up
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;
@ugexe
Copy link
Author

ugexe commented Jun 17, 2017

# Looks like you failed 15 tests of 50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment