From: Marius Gavrilescu Date: Sat, 7 Apr 2018 10:36:46 +0000 (+0300) Subject: Relax tests X-Git-Tag: 1.000008~1 X-Git-Url: http://git.ieval.ro/?p=www-offliberty.git;a=commitdiff_plain;h=3aafdd8cf8e76a9991f3a14125382a9e533f3d04 Relax tests --- diff --git a/t/50-network.t b/t/50-network.t index 7392c85..32574b5 100644 --- a/t/50-network.t +++ b/t/50-network.t @@ -11,7 +11,8 @@ my @results; cmp_ok @results, '>=', 1, 'vimeo'; @results = off 'https://vimeo.com/45196609', video_file => 1; -is @results, 2, 'vimeo, video_file => 1'; +cmp_ok @results, '>=', 1, 'vimeo, video_file => 1'; -like $results[1], qr/\.mp4/, 'video URL contains ".mp4"'; -unlike $results[0], qr/offwarning/, 'audio URL doesn\'t contain "offwarning"'; +my $allresults = join ' ', @results; +like $allresults, qr/\.mp4/, 'some URL contains ".mp4"'; +unlike $allresults, qr/offwarning/, 'no URL contains "offwarning"';