]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_v2.t
searchidx: ensure duplicated Message-IDs can be linked together
[public-inbox.git] / t / psgi_v2.t
index aa3279cc6870743e43f62efb4b8f98141d4a7193..bdf23deb1c0080f382d1634712dc57070f2b2e1c 100644 (file)
@@ -182,6 +182,9 @@ test_psgi(sub { $www->call(@_) }, sub {
        $res = $cb->(GET('/v2test/reuse@mid/T/'));
        $raw = $res->content;
        like($raw, qr/\b4\+ messages\b/, 'thread overview shown with /T/');
+       my @over = ($raw =~ m/^\d{4}-\d+-\d+\s+\d+:\d+ (.+)$/gm);
+       is_deeply(\@over, [ '<a', '` <a', '` <a', '` <a' ],
+               'duplicate messages share the same root');
 
        $res = $cb->(GET('/v2test/reuse@mid/t/'));
        $raw = $res->content;