mirror of https://github.com/poanetwork/hbbft.git
Update to Rust 1.35.0.
This commit is contained in:
parent
61f4ed9800
commit
01d301d4fe
|
@ -1,6 +1,6 @@
|
|||
language: rust
|
||||
rust:
|
||||
- 1.34.0
|
||||
- 1.35.0
|
||||
cache:
|
||||
cargo: true
|
||||
timeout: 1200
|
||||
|
|
|
@ -133,7 +133,7 @@ fn network_to_u32_is_correct() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::cyclomatic_complexity)]
|
||||
#[allow(clippy::cognitive_complexity)]
|
||||
fn network_from_u32_is_correct() {
|
||||
assert_eq!(NetworkDimension::new(1, 0), NetworkDimension::from(0u32));
|
||||
assert_eq!(NetworkDimension::new(2, 0), NetworkDimension::from(1u32));
|
||||
|
|
|
@ -54,7 +54,7 @@ prop_compose! {
|
|||
}
|
||||
}
|
||||
|
||||
/// Proptest wrapper for `binary_agreement` that runs the test function on generated configurations.
|
||||
// Proptest wrapper for `binary_agreement` that runs the test function on generated configurations.
|
||||
proptest! {
|
||||
#![proptest_config(ProptestConfig {
|
||||
cases: 1, .. ProptestConfig::default()
|
||||
|
|
|
@ -72,7 +72,7 @@ prop_compose! {
|
|||
}
|
||||
}
|
||||
|
||||
/// Proptest wrapper for `do_drop_and_re_add`.
|
||||
// Proptest wrapper for `do_drop_and_re_add`.
|
||||
proptest! {
|
||||
#![proptest_config(ProptestConfig::with_cases(1))]
|
||||
#[test]
|
||||
|
@ -85,7 +85,7 @@ proptest! {
|
|||
/// Dynamic honey badger: Drop a validator node, demoting it to observer, then re-add it, all while
|
||||
/// running a regular honey badger network.
|
||||
// TODO: Add an observer node to the test network.
|
||||
#[allow(clippy::needless_pass_by_value, clippy::cyclomatic_complexity)]
|
||||
#[allow(clippy::needless_pass_by_value, clippy::cognitive_complexity)]
|
||||
fn do_drop_and_re_add(cfg: TestConfig) {
|
||||
// This returns an error in all but the first test.
|
||||
let _ = env_logger::try_init();
|
||||
|
|
Loading…
Reference in New Issue