Skip to content

Commit 46559ea

Browse files
committed
windows: Fix cgi tests by explicitly closing db opened by test client
1 parent da779b5 commit 46559ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_cgi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ def testPasswordMigration(self):
455455
pw = self.db.user.get(chef, 'password')
456456
self.assertEqual(pw, 'foo')
457457
self.assertEqual(pw, pw1)
458+
cl.db.close()
458459

459460
def testPasswordConfigOption(self):
460461
chef = self.db.user.lookup('Chef')
@@ -469,6 +470,7 @@ def testPasswordConfigOption(self):
469470
pw = self.db.user.get(chef, 'password')
470471
self.assertEqual('PBKDF2', pw.scheme)
471472
self.assertEqual(1000, password.pbkdf2_unpack(pw.password)[0])
473+
cl.db.close()
472474

473475
#
474476
# Boolean

0 commit comments

Comments
 (0)