From: Remi Gacogne Date: Fri, 26 Nov 2021 12:51:13 +0000 (+0100) Subject: dnsdist: Update the outgoing DoT tests now that we save TLS tickets during healthchecks X-Git-Tag: rec-4.7.0-alpha0~12^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2be4efc51a14f1793b49a1a0ae40589cbd9ba68a;p=thirdparty%2Fpdns.git dnsdist: Update the outgoing DoT tests now that we save TLS tickets during healthchecks --- 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): """