Slight terminology correction in sync test

Also correct a mistake from merging the most recent polkadot version.
This commit is contained in:
Luke Parker
2023-06-28 15:04:48 -04:00
parent 790fe7ee23
commit f6a497f3ac
3 changed files with 124 additions and 123 deletions

View File

@@ -117,9 +117,9 @@ async fn sync_test() {
// Because only `t` validators are used in a commit, take n - t nodes offline
// leaving only `t` nodes. Which should force it to participate in the consensus
// of next blocks.
let n = (spec.n() - spec.t()) as usize;
for t in p2p_threads.iter().take(n) {
t.abort();
let spares = usize::from(spec.n() - spec.t());
for thread in p2p_threads.iter().take(spares) {
thread.abort();
}
// wait for a block