From dbb2e8778c2b3fe7d95e273f6d69e628bfd4a578 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 29 Jun 2022 18:40:51 +0200 Subject: [PATCH] dnsdist: Close the CDB file in the CDB regression tests --- regression-tests.dnsdist/test_CDB.py | 1 + 1 file changed, 1 insertion(+) 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): -- 2.47.2