mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Slight terminology correction in sync test
Also correct a mistake from merging the most recent polkadot version.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user