Description: Adjust test to mpd >= 0.19
 Test::Corpus::Audio::MPD contains 5 tracks just over 1.8 seconds each.
 mpd < 0.19 rounded each track up to 2 seconds then added the lengths
 in seconds to get 10s, but mpd >= 0.19 adds up the lengths in ms and then
 rounds it down to 9s.
Origin: vendor
Bug-Debian: https://bugs.debian.org/768712
Author: Simon McVittie <smcv@debian.org>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2014-11-12
Forwarded: https://rt.cpan.org/Ticket/Display.html?id=100301
Bug: https://rt.cpan.org/Ticket/Display.html?id=100301

--- a/t/42-cmds-info.t
+++ b/t/42-cmds-info.t
@@ -20,7 +20,7 @@
 # are we able to test module?
 eval 'use Test::Corpus::Audio::MPD';
 plan skip_all => $@ if $@ =~ s/\n+Compilation failed.*//s;
-plan tests => 29;
+plan tests => 30;
 
 # launch fake mpd
 POE::Component::Client::MPD->spawn;
@@ -70,7 +70,8 @@
     is($stats->albums,          1, 'one album in the database');
     is($stats->songs,           5, '5 songs in the database');
     is($stats->playtime,        0, 'already played 0 seconds');
-    is($stats->db_playtime,    10, '10 seconds worth of music in the db');
+    cmp_ok($stats->db_playtime, '>=',  9, '>= 9 seconds worth of music in the db');
+    cmp_ok($stats->db_playtime, '<=', 10, '<= 10 seconds worth of music in the db');
     isnt($stats->uptime,    undef, 'uptime is defined');
     isnt($stats->db_update,     0, 'database has been updated');
 }
