### ----------------------------------------------------
### -- Log::Async
### -- Licenses: Artistic-1.0-Perl
### -- Authors: Brian Duggan
### -- File: t/07-done.rakutest
### ----------------------------------------------------
use Test;
use lib 'lib';
use Log::Async;

plan 2;

my $out = "";
$*OUT = $*OUT but role { method say($arg) { $out ~= $arg } };
set-logger(Log::Async.new);
logger.send-to($*OUT);

info 'first';
info 'second';

logger.done;

like $out, /first/, 'found first in output';
like $out, /second/, 'found second in output';


