diff options
| -rw-r--r-- | src/simtest/holding.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/simtest/holding.rs b/src/simtest/holding.rs index a7fc116..e1336bc 100644 --- a/src/simtest/holding.rs +++ b/src/simtest/holding.rs @@ -1409,8 +1409,9 @@ async fn store_attack_30() { /// A swarm on the epoch of a compaction whose snapshot holds a checkpoint, and d, of /// makefu, serving an epoch of that generation it made up, of a `lower` ID or a higher, /// whose snapshot holds the root and tv's write alone, as the document stood before the -/// checkpoint: the simulation, its nodes (a, b, c, d), the federation's first version -/// and ID, tv's write, and the two epochs. +/// checkpoint; of a higher, apart from the others, whose epoch it would rejoin: the +/// simulation, its nodes (a, b, c, d), the federation's first version and ID, tv's +/// write, and the two epochs. async fn made_up_epoch( seed: u64, lower: bool, @@ -1501,6 +1502,12 @@ async fn made_up_epoch( .expect("an epoch"); let lower = made_up.epoch; assert!(events::checkpoint(&made_up.doc).is_none()); + if made_up.epoch.id > honest.id { + for other in ["a", "b", "c"] { + cut(&sim, "d", other, true); + cut(&sim, other, "d", true); + } + } crate::remake::testing::serve(&nodes[3], lower, made_up.doc).await; (sim, nodes, first, id, head, honest, lower) } |
