Add bogus peer simulation to e2e tests

This commit is contained in:
Igor Katson 2024-03-29 20:32:08 +00:00
parent 2ef5124a2d
commit 048f4d1645
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 25 additions and 6 deletions

View file

@ -63,4 +63,11 @@ impl TestPeerMetadata {
}
0f64
}
pub fn bad_data_probability(&self) -> f64 {
if self.server_id % 2 == 0 {
return 0.05f64;
}
0f64
}
}