Skip to content

Commit e5ea85c

Browse files
fix: Address test failures and configuration issues
- Fix test_auth.py:170 to check for Lock object instead of boolean - Fix main.py:168 to use correct settings.port instead of settings.app_port 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: abrookins <[email protected]>
1 parent a3a7170 commit e5ea85c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

agent_memory_server/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def on_start_logger(port: int):
165165
# Run the application
166166
if __name__ == "__main__":
167167
# Parse command line arguments for port
168-
port = settings.app_port
168+
port = settings.port
169169

170170
# Check if --port argument is provided
171171
if "--port" in sys.argv:

tests/test_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def test_jwks_cache_initialization(self):
167167
assert cache._cache == {}
168168
assert cache._cache_time is None
169169
assert cache._cache_duration == 3600
170-
assert cache._lock is False
170+
assert hasattr(cache._lock, 'acquire') # Should be a threading.Lock
171171

172172
def test_jwks_cache_custom_duration(self):
173173
"""Test JWKS cache with custom duration"""

0 commit comments

Comments
 (0)