diff options
author | Eric Wong <e@80x24.org> | 2022-09-10 08:17:11 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-09-10 19:50:40 +0000 |
commit | 5ca29b7f2789517f0a41f1482509f504b8b601e1 (patch) | |
tree | f0142a58ed1b6e0fc834c9b2dadc70eef780b8cf /t/psgi_v2.t | |
parent | 7e2f017fdde71d74ef29a43e9ee966daba42b2f4 (diff) | |
download | public-inbox-5ca29b7f2789517f0a41f1482509f504b8b601e1.tar.gz |
We can rely on {-html_tip} for some things at the top of the page, and reduce ascii_html and obfuscate_addrs calls by working on the whole buffer at once.
Diffstat (limited to 't/psgi_v2.t')
-rw-r--r-- | t/psgi_v2.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/psgi_v2.t b/t/psgi_v2.t index 7d73b606..6b1b3a39 100644 --- a/t/psgi_v2.t +++ b/t/psgi_v2.t @@ -1,5 +1,5 @@ #!perl -w -# Copyright (C) 2018-2021 all contributors <meta@public-inbox.org> +# Copyright (C) all contributors <meta@public-inbox.org> # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt> use strict; use v5.10.1; @@ -209,6 +209,8 @@ my $client1 = sub { local $SIG{__WARN__} = 'DEFAULT'; $res = $cb->(GET('/v2test/a-mid@b/')); $raw = $res->content; + like($raw, qr/WARNING: multiple messages have this Message-ID/, + 'warned about duplicate Message-IDs'); like($raw, qr/^hello world$/m, 'got first message'); like($raw, qr/^hello world!$/m, 'got second message'); like($raw, qr/^hello ghosts$/m, 'got third message'); |