fix: ensure token store file ops do not deadlock

* fix: ensure token store file ops do not deadlock
* chore: update test method reference
This commit is contained in:
Greyson LaLonde
2025-12-08 19:04:21 -05:00
committed by GitHub
parent 6125b866fd
commit beef712646
3 changed files with 331 additions and 215 deletions

View File

@@ -31,7 +31,7 @@ def tool_command():
with tempfile.TemporaryDirectory() as temp_dir:
# Mock the secure storage path to use the temp directory
with patch.object(
TokenManager, "get_secure_storage_path", return_value=Path(temp_dir)
TokenManager, "_get_secure_storage_path", return_value=Path(temp_dir)
):
TokenManager().save_tokens(
"test-token", (datetime.now() + timedelta(seconds=36000)).timestamp()