From 5ca29b7f2789517f0a41f1482509f504b8b601e1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 10 Sep 2022 08:17:11 +0000 Subject: view: reduce ascii_html calls and {obuf} use 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. --- t/psgi_v2.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 't/psgi_v2.t') 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 +# Copyright (C) all contributors # License: AGPL-3.0+ 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'); -- cgit v1.2.3-24-ge0c7