Peach: Local-first video metadata scraper and media manager.
test(api): 关机等预热释放账本那条不再写死预热清单的第一项
longmeidao326d15bfb6e4
diff --git a/tests/test_fastapi_api.py b/tests/test_fastapi_api.pyindex a537672d5..01de1c0a0 100644--- a/tests/test_fastapi_api.py+++ b/tests/test_fastapi_api.py@@ -4100,7 +4100,9 @@ class UnconfiguredMachineTests(unittest.IsolatedAsyncioTestCase):release.set()await shutdownself.assertTrue(closed.is_set())- self.assertEqual(calls, ["/api/taste"])+ # 只走到预热清单的第一项:关机等它释放账本,后面的不再起。+ from peach.api import WARM_AGGREGATES+ self.assertEqual(calls, [WARM_AGGREGATES[0][0]])finally:release.set()if shutdown is not None: