From: Marius Gavrilescu Date: Sat, 31 Dec 2016 20:57:28 +0000 (+0200) Subject: Fix test X-Git-Tag: 0.001002~1 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=636bd91801760881f97a1698ceaadce770076edd;p=app-lastmsg.git Fix test --- diff --git a/t/App-Lastmsg.t b/t/App-Lastmsg.t index a5eca29..2439d3f 100644 --- a/t/App-Lastmsg.t +++ b/t/App-Lastmsg.t @@ -9,7 +9,7 @@ my $real_strftime = \&POSIX::strftime; { no warnings 'redefine'; - *POSIX::strftime = sub { + *App::Lastmsg::strftime = sub { my ($format, @rest) = @_; $real_strftime->('%s', @rest) }; @@ -23,7 +23,7 @@ $0 = 'lastmsg'; App::Lastmsg::run; is $out, <<'EOF', 'output is correct'; -user2 user2@example.org Sat 31 Dec 2016 13:10:00 EET -user1 user1@example.com Fri 30 Dec 2016 15:44:00 EET +user2 user2@example.org 1483182600 +user1 user1@example.com 1483105440 user3 NOT FOUND EOF