]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/nntpd-tls: change diag() to like() assertion
authorEric Wong <e@80x24.org>
Wed, 13 Oct 2021 10:16:11 +0000 (10:16 +0000)
committerEric Wong <e@80x24.org>
Wed, 13 Oct 2021 19:52:26 +0000 (19:52 +0000)
This test wasn't finished when I initially wrote it :x

t/nntpd-tls.t

index d81d1e1303fc75f175407aa6c0afe207afc80c02..2a76867a290b44bebc67fbda817927e6eb452f16 100644 (file)
@@ -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: {