]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Close the CDB file in the CDB regression tests 11732/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 29 Jun 2022 16:40:51 +0000 (18:40 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 29 Jun 2022 16:56:35 +0000 (18:56 +0200)
regression-tests.dnsdist/test_CDB.py

index 2ed764ce86b08b7dfb58feee9d75486f278a7ebc..78b92d8b88524e1f336e5a6f9e63823875490603 100644 (file)
@@ -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):