diff options
Diffstat (limited to 'src/access/token.rs')
| -rw-r--r-- | src/access/token.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/access/token.rs b/src/access/token.rs index 54dd7f8..0b6521a 100644 --- a/src/access/token.rs +++ b/src/access/token.rs @@ -288,10 +288,11 @@ mod tests { serde_json::from_slice(&BASE64URL.decode(payload).unwrap()).unwrap() } - /// In a swarm holding a store, a node takes only the tokens it issued. + /// In a swarm holding a store, a node takes only the tokens it issued (`docs/store.md`, + /// Attacks, 17: a token from another node). #[cfg(feature = "federation")] #[test] - fn a_store_node_takes_its_own_tokens_only() { + fn store_attack_17() { let key = NodeKey::from_seed([1; 32]); let other = NodeKey::from_seed([2; 32]); let mut doc = crate::document::events::started("federation", b"a root").unwrap(); |
