Update stream close test to match new _closing helper
This commit is contained in:
@@ -149,13 +149,9 @@ async def test_openai_llm_stream_closed_on_cancellation():
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.iteration_count = 0
|
self.iteration_count = 0
|
||||||
|
|
||||||
async def __aenter__(self):
|
async def close(self):
|
||||||
return self
|
|
||||||
|
|
||||||
async def __aexit__(self, exc_type, exc_val, exc_tb):
|
|
||||||
nonlocal stream_closed
|
nonlocal stream_closed
|
||||||
stream_closed = True
|
stream_closed = True
|
||||||
return False
|
|
||||||
|
|
||||||
def __aiter__(self):
|
def __aiter__(self):
|
||||||
return self
|
return self
|
||||||
|
|||||||
Reference in New Issue
Block a user