tests/virtual-device: Reset keep alive status when test is done

We don't want this to be preserved across tests, since it's meant to be
used inside a single test case.
This commit is contained in:
Marco Trevisan (Treviño)
2023-06-22 00:12:14 -04:00
parent e48d2b467a
commit 28579239a6

View File

@@ -103,6 +103,7 @@ class VirtualDeviceBase(unittest.TestCase):
def tearDown(self):
if self._close_on_teardown:
self.assertTrue(self.dev.is_open())
self.set_keep_alive(False)
self.send_command('SET_ENROLL_STAGES', self.DEFAULT_ENROLL_STEPS)
self.dev.close_sync()
self.assertFalse(self.dev.is_open())