Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Close the migrated ledger before the test removes its folder

Fei24111d8d135439ea
diff --git a/ds-bot/test/usage.test.js b/ds-bot/test/usage.test.js
index 5d87e5e8..b49c280b 100644
--- a/ds-bot/test/usage.test.js
+++ b/ds-bot/test/usage.test.js
@@ -298,8 +298,8 @@ test('a ledger from the previous version keeps its metered calls and gains the s
db.close()
const second = start(home)
- t.after(() => second.ctx.dispose())
const view = (await second.call('usage', { timeZone: 'Asia/Shanghai' })).value
+ await second.ctx.dispose()
assert.equal(totals(view)['Chief/compaction'], 1100)
assert.equal(totals(view)['Chief/chat'], 160 + 220 + 10)
assert.deepEqual(second.warnings, [])