test(agent): allow storage shutdown to finish during cleanup
This commit is contained in:
1 parent
ef9409dc89
commit
382f1b12e8
1 file changed
+6
-3
@@ -150,9 +150,12 @@ async def test_sdk_ephemeral_delegation_never_persists_on_later_flush(
|
|||||||
assert [row["key"] for row in loop.sessions.list_sessions()] == [key]
|
assert [row["key"] for row in loop.sessions.list_sessions()] == [key]
|
||||||
finally:
|
finally:
|
||||||
loop.stop()
|
loop.stop()
|
||||||
await asyncio.wait_for(consumer, timeout=2)
|
try:
|
||||||
logger.remove(sink)
|
# Bound cleanup without imposing a two-second disk/thread shutdown contract.
|
||||||
await bot.aclose()
|
await asyncio.wait_for(consumer, timeout=30)
|
||||||
|
finally:
|
||||||
|
logger.remove(sink)
|
||||||
|
await bot.aclose()
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
|
|||||||
Reference in new issue
Block a user