From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id A6E211FA19 for ; Wed, 13 Oct 2021 10:16:12 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 7/7] t/nntpd-tls: change diag() to like() assertion Date: Wed, 13 Oct 2021 10:16:11 +0000 Message-Id: <20211013101611.22962-8-e@80x24.org> In-Reply-To: <20211013101611.22962-1-e@80x24.org> References: <20211013101611.22962-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This test wasn't finished when I initially wrote it :x --- t/nntpd-tls.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: {