Add features across agents, collab, trust, indexes, and hyperbee.
Manual pass: task cancelTask, workflow topologicalOrder/fail/reset, collab kick/replay, trust trustedPeers and multisig TTL sweep, graph shortestPath, inverted topTerms, dedup filterNew, bee notifyBatch/seekVersion — all with tests. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -36,3 +36,12 @@ test('getStats', async (t) => {
|
||||
t.is(m.getStats().created, 1)
|
||||
await m.close()
|
||||
})
|
||||
|
||||
test('ttl sweep and listProposals', async (t) => {
|
||||
const m = new HyperP2PMultisigThreshold()
|
||||
m.createProposal('exp', ['a', 'b'], 2, { expiresAt: Date.now() - 1 })
|
||||
t.is(m.listProposals().length, 1)
|
||||
t.is(m.sweepExpired(), 1)
|
||||
t.is(m.listProposals().length, 0)
|
||||
await m.close()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user