X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fpsgi_v2.t;h=6b1b3a39bd7f29f5656482aae6ed30dc9cb8b592;hb=115d59641bda19405a3ed82dc72e129f9196fad5;hp=7d73b606dbef5f0ad736cc57ddaef5b5d222e4b8;hpb=7319f5d318a960eeb32a207d226eea7fd9ce2543;p=public-inbox.git 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');