From a565ab97852d4885e8bed138865eceafdabf63ec Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 13 Oct 2021 10:16:11 +0000 Subject: t/nntpd-tls: change diag() to like() assertion This test wasn't finished when I initially wrote it :x --- t/nntpd-tls.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 't') diff --git a/t/nntpd-tls.t b/t/nntpd-tls.t index d81d1e13..2a76867a 100644 --- a/t/nntpd-tls.t +++ b/t/nntpd-tls.t @@ -151,7 +151,8 @@ for my $args ( \'STARTTLS not used by default'; ok(!lei(qw(ls-mail-source -c nntp.starttls=true), "nntp://$starttls_addr"), 'STARTTLS verify fails'); - diag $lei_err; + like $lei_err, qr/STARTTLS requested/, + 'STARTTLS noted in stderr'; }); SKIP: { -- cgit v1.2.3-24-ge0c7