]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_v2.t
view: show percentage in search results thread skeleton
[public-inbox.git] / t / psgi_v2.t
index 1163e2bf89f73c9bd400b23f5fbe2d275086ce94..101765168d44068b2843a9d4a2345399dbddf5e1 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 use Test::More;
-require './t/common.perl';
+use PublicInbox::TestCommon;
 require_git(2.6);
 use PublicInbox::MIME;
 use PublicInbox::Config;
@@ -155,7 +155,7 @@ test_psgi(sub { $www->call(@_) }, sub {
        is($res->code, 200, 'success with threaded search');
        my $raw = $res->content;
        ok($raw =~ s/\A.*>Results 1-3 of 3\b//s, 'got all results');
-       my @over = ($raw =~ m/\d{4}-\d+-\d+\s+\d+:\d+ (.+)$/gm);
+       my @over = ($raw =~ m/\d{4}-\d+-\d+\s+\d+:\d+ +(?:\d+\% )?(.+)$/gm);
        is_deeply(\@over, [ '<a', '` <a', '` <a' ], 'threaded messages show up');
 
        local $SIG{__WARN__} = 'DEFAULT';