(self)
| 204 | os.environ["FASTLED_LOCK_DB_PATH"] = str(self.db_path) |
| 205 | |
| 206 | def tearDown(self) -> None: |
| 207 | import shutil |
| 208 | |
| 209 | os.environ.pop("FASTLED_LOCK_DB_PATH", None) |
| 210 | from ci.util.lock_database import _db_cache |
| 211 | |
| 212 | _db_cache.clear() |
| 213 | shutil.rmtree(self.temp_dir, ignore_errors=True) |
| 214 | |
| 215 | def test_stale_lock_auto_broken_on_timeout(self) -> None: |
| 216 | """Stale lock should be automatically broken on timeout""" |