mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-01-01 03:40:12 +01:00
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:
parent
e48d2b467a
commit
28579239a6
1 changed files with 1 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue