aboutsummaryrefslogtreecommitdiffstats
path: root/src/federation
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-17 02:55:11 +0000
committertv <tv@krebsco.de>2026-11-17 03:59:16 +0100
commit4e72aacfc5006317af4989d3779d14940281761f (patch)
tree921a5313f78fd9cb10fe8253b01eb45a92762247 /src/federation
parent55a62cbeb66a640c8d9eff07b0ac441ef2d9859c (diff)
federation: the test of a node voting above a checkpoint's heads holds for a while
With no time to hold an event for a while, lass's write, taken just before the proposal, counted as held for a while before it was proposed, and the node backed no heads leaving it out. The test's node now holds an event for an hour before it holds it for a while.
Diffstat (limited to 'src/federation')
-rw-r--r--src/federation/held.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/federation/held.rs b/src/federation/held.rs
index 2121184..dd469c1 100644
--- a/src/federation/held.rs
+++ b/src/federation/held.rs
@@ -1349,8 +1349,10 @@ mod tests {
.voting(Some(Voter {
key: makefu.key.clone(),
record,
+ // Lass's write, just taken, not held for a while: it may be left out.
rules: Rules {
follow: vec!["tv".to_owned()],
+ held_for: Duration::from_secs(3600),
..Rules::default()
},
}));