From 2be4efc51a14f1793b49a1a0ae40589cbd9ba68a Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 26 Nov 2021 13:51:13 +0100 Subject: [PATCH] dnsdist: Update the outgoing DoT tests now that we save TLS tickets during healthchecks --- regression-tests.dnsdist/test_OutgoingTLS.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/regression-tests.dnsdist/test_OutgoingTLS.py b/regression-tests.dnsdist/test_OutgoingTLS.py index 53677a6612..c07be66337 100644 --- a/regression-tests.dnsdist/test_OutgoingTLS.py +++ b/regression-tests.dnsdist/test_OutgoingTLS.py @@ -65,8 +65,10 @@ class OutgoingTLSTests(object): # we tried to reuse the connection (and then it failed but hey) self.assertEqual(self.getServerStat('tcpReusedConnections'), numberOfQueries - 1) # we resumed the TLS session, though, but since we only learn about that - # when the connection is closed, we are off by one - self.assertEqual(self.getServerStat('tlsResumptions'), numberOfUDPQueries - 1) + # when the connection is closed, we might be off by one, except if a health check + # allowed the first TCP connection to be resumed as well + self.assertGreaterEqual(self.getServerStat('tlsResumptions'), numberOfUDPQueries - 1) + self.assertLessEqual(self.getServerStat('tlsResumptions'), numberOfUDPQueries) def testTCP(self): """ -- 2.47.2