Fixed cache shutdown to properly await task cancellation and added names to background tasks.
This commit is contained in:
+1
-1
@@ -113,6 +113,6 @@ class TestIngestCache:
|
||||
cache.put(1, entry)
|
||||
cache.start()
|
||||
await asyncio.sleep(0.05)
|
||||
cache.stop()
|
||||
await cache.stop()
|
||||
# Entry should have been cleaned up by the background task.
|
||||
assert cache.pop(1) is None
|
||||
|
||||
Reference in New Issue
Block a user