feat(modules): deepen trust, experimental, routing, and search
Hyper-P2P Module Tests / unit-all (push) Failing after 1h17m5s
Hyper-P2P Module Tests / unit-all (push) Failing after 1h17m5s
Session revoke and encrypted-topic JSON helpers; silence/void channel snapshots; relay tunnel route listing; grow-only set algebra; CPU top donors; attestation chain slice/export; fulltext bulk and top terms. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -36,3 +36,14 @@ test('getStats', async (t) => {
|
||||
t.is(m.getStats().rotations, 1)
|
||||
await m.close()
|
||||
})
|
||||
|
||||
test('validateToken revokeSession', async (t) => {
|
||||
const m = new HyperP2PSessionRotation()
|
||||
m.rotateSession('s', 'secret')
|
||||
t.ok(m.validateToken('s', 'secret'))
|
||||
t.not(m.validateToken('s', 'wrong'))
|
||||
t.is(m.latestVersion('s'), 1)
|
||||
t.ok(m.revokeSession('s'))
|
||||
t.is(m.getSession('s'), null)
|
||||
await m.close()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user