MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / setUp

Method setUp

tests/test_auth_rotation_fixes.py:31–35  ·  view source on GitHub ↗

Reset global state before each test

(self)

Source from the content-addressed store, hash-verified

29 """Test CRIT-01: Race condition elimination in queue worker"""
30
31 def setUp(self):
32 """Reset global state before each test"""
33 GlobalState.IS_QUOTA_EXCEEDED = False
34 GlobalState.QUOTA_EXCEEDED_TIMESTAMP = 0.0
35 GlobalState.QUOTA_EXCEEDED_EVENT.clear()
36
37 def test_quota_check_before_queue_get(self):
38 """Test that quota exceeded is checked BEFORE getting next request"""

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected