Add bogus peer simulation to e2e tests
This commit is contained in:
parent
2ef5124a2d
commit
048f4d1645
2 changed files with 25 additions and 6 deletions
|
|
@ -63,4 +63,11 @@ impl TestPeerMetadata {
|
|||
}
|
||||
0f64
|
||||
}
|
||||
|
||||
pub fn bad_data_probability(&self) -> f64 {
|
||||
if self.server_id % 2 == 0 {
|
||||
return 0.05f64;
|
||||
}
|
||||
0f64
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue