From: Remi Gacogne Date: Wed, 29 Jun 2022 16:40:51 +0000 (+0200) Subject: dnsdist: Close the CDB file in the CDB regression tests X-Git-Tag: rec-4.9.0-alpha0~12^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbb2e8778c2b3fe7d95e273f6d69e628bfd4a578;p=thirdparty%2Fpdns.git dnsdist: Close the CDB file in the CDB regression tests --- diff --git a/regression-tests.dnsdist/test_CDB.py b/regression-tests.dnsdist/test_CDB.py index 2ed764ce86..78b92d8b88 100644 --- a/regression-tests.dnsdist/test_CDB.py +++ b/regression-tests.dnsdist/test_CDB.py @@ -15,6 +15,7 @@ def writeCDB(fname, variant=1): cdb.add(b'this is the value of the qname tag', b'this is the value of the second tag') cdb.commit().close() os.rename(fname+'.tmp', fname) + cdb.close() @unittest.skipIf('SKIP_CDB_TESTS' in os.environ, 'CDB tests are disabled') class CDBTest(DNSDistTest):