test(proxy): let the prompt cache observer finish on failure events

This commit is contained in:
Deepanshu Pal 2026-10-02 12:45:31 +05:30 • committed by GitHub
parent 20a4df16d8
commit 670c1fb9ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -204,6 +204,9 @@ class RecordingObserver(PromptCacheObserver):
await super().async_log_success_event(kwargs, response_obj, start_time, end_time)
self.finished.set()
async def async_log_failure_event(self, kwargs, response_obj, start_time, end_time):
self.finished.set()
def native_response():
return {