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

plan 2;

my $message;
logger.add-tap({ sleep 1; $message = $^m<msg> });

info 'hi';
ok !$message, 'no message yet';
sleep 2;
is $message, 'hi', 'now there is a message';



