test(fuzz): un-ignore the peer-table recovery probes now that S1 is in
Also match DropReason::IdentityChanged as a unit variant in the harness, since the variant-level non_exhaustive is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -597,7 +597,7 @@ impl Harness {
|
|||||||
DropReason::VersionMismatch { .. } | DropReason::Malformed => {
|
DropReason::VersionMismatch { .. } | DropReason::Malformed => {
|
||||||
book.seen_decode_drops += count
|
book.seen_decode_drops += count
|
||||||
}
|
}
|
||||||
DropReason::IdentityChanged { .. } => book.seen_identity_drops += count,
|
DropReason::IdentityChanged => book.seen_identity_drops += count,
|
||||||
_ => book.seen_other_drops += count,
|
_ => book.seen_other_drops += count,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -258,7 +258,6 @@ proptest! {
|
|||||||
/// frame (filling the table), then everyone goes quiet. After
|
/// frame (filling the table), then everyone goes quiet. After
|
||||||
/// `PEER_IDLE_MS`, a never-seen address must get a slot.
|
/// `PEER_IDLE_MS`, a never-seen address must get a slot.
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore = "needs S1 (idle sweep): silent peers are never evicted yet"]
|
|
||||||
fn peer_table_recovers_after_flood() {
|
fn peer_table_recovers_after_flood() {
|
||||||
let mut h = Harness::new(Mode::Adversarial, MAX_FRAME);
|
let mut h = Harness::new(Mode::Adversarial, MAX_FRAME);
|
||||||
for addr in 0..(MAX_PEERS as u64 + 16) {
|
for addr in 0..(MAX_PEERS as u64 + 16) {
|
||||||
@@ -275,7 +274,6 @@ fn peer_table_recovers_after_flood() {
|
|||||||
/// Same flood, but contact-only peers: `Contact` events with no frames must
|
/// Same flood, but contact-only peers: `Contact` events with no frames must
|
||||||
/// age out too.
|
/// age out too.
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore = "needs S1 (idle sweep): contact-only peers are never evicted yet"]
|
|
||||||
fn peer_table_recovers_after_contact_flood() {
|
fn peer_table_recovers_after_contact_flood() {
|
||||||
let mut h = Harness::new(Mode::Adversarial, MAX_FRAME);
|
let mut h = Harness::new(Mode::Adversarial, MAX_FRAME);
|
||||||
for addr in 0..(MAX_PEERS as u64) {
|
for addr in 0..(MAX_PEERS as u64) {
|
||||||
|
|||||||
Reference in New Issue
Block a user