Skip to content

Commit

Permalink
Test the one event I have written so far
Browse files Browse the repository at this point in the history
  • Loading branch information
bobtfish committed Mar 28, 2010
1 parent db732ee commit 52b0b12
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions t/event_scriptrun.t
@@ -0,0 +1,18 @@
use strict;
use warnings;
use Test::More;
use Sys::Hostname qw/ hostname /;

BEGIN { $0 = 't/event_scriptrun.t' }

use Log::Message::Structured::Event::ScriptRun;

sleep 2;

my $m = Log::Message::Structured::Event::ScriptRun->new;

is $m->script_name, 't/event_scriptrun.t';
ok $m->time >= 2;
is $m.'', 'Script t/event_scriptrun.t run on ' . hostname() . ' for ' . $m->time . 's';

done_testing;

0 comments on commit 52b0b12

Please sign in to comment.