]> iEval git - app-lastmsg.git/commitdiff
Fix test
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 31 Dec 2016 20:57:28 +0000 (22:57 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 31 Dec 2016 20:57:28 +0000 (22:57 +0200)
t/App-Lastmsg.t

index a5eca2977adcb7482101671212b9908319279380..2439d3f1997e270331a71cce01ab374592ec380a 100644 (file)
@@ -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
This page took 0.026684 seconds and 4 git commands to generate.