Module: monitoring-plugins
 Branch: master
 Commit: 4442ea917b9b3a7bc4fe4b980bbfc70b533a6010
 Author: Lorenz Kästle <[email protected]>
   Date: Sat Nov  8 01:15:54 2025 +0100
    URL: 
https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=4442ea91

small test correction

---

 plugins/t/check_smtp.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/t/check_smtp.t b/plugins/t/check_smtp.t
index 6c8601d3..c2f53c3d 100644
--- a/plugins/t/check_smtp.t
+++ b/plugins/t/check_smtp.t
@@ -25,7 +25,7 @@ my $hostname_invalid   = getTestParameter( 
"NP_HOSTNAME_INVALID",
                                            "An invalid (not known to DNS) 
hostname", "nosuchhost" );
 my $res;
 
-plan tests => 15;
+plan tests => 13;
 
 SKIP: {
        skip "No SMTP server defined", 4 unless $host_tcp_smtp;
@@ -47,7 +47,7 @@ SKIP: {
 
        $res = NPTest->testCmd( "./check_smtp -H $host_tcp_smtp --ssl -p 25" );
        is ($res->return_code, 2, "Check rc of connecting to $host_tcp_smtp 
with TLS on standard SMTP port" );
-       like ($res->output, qr/^cannot create TLS context\./, "Check output of 
connecting to $host_tcp_smtp with TLS on standard SMTP port");
+       like ($res->output, qr/cannot create TLS context/, "Check output of 
connecting to $host_tcp_smtp with TLS on standard SMTP port");
 }
 
 SKIP: {

Reply via email to