Skip to content

Commit e5b9a73

Browse files
committed
chore: last cleanup from p2p::conv test movement
1 parent 8ad5e95 commit e5b9a73

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

stackslib/src/net/chat.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ impl Neighbor {
510510
}
511511
};
512512

513-
#[cfg(any(test, feature = "testing"))]
513+
#[cfg(test)]
514514
{
515515
// setting BLOCKSTACK_NEIGHBOR_TEST_${PORTNUMBER} will let us select an organization
516516
// for this peer
@@ -3060,7 +3060,6 @@ impl ConversationP2P {
30603060

30613061
#[cfg(test)]
30623062
mod test {
3063-
#![allow(unused)]
30643063
use std::fs;
30653064
use std::io::prelude::*;
30663065
use std::io::{Read, Write};

stackslib/src/net/neighbors/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ pub use db::{NeighborReplacements, NeighborWalkDB, PeerDBNeighborWalk};
4242
pub use walk::{NeighborPingback, NeighborWalk, NeighborWalkResult};
4343

4444
/// How often we can contact other neighbors, at a minimim
45-
#[cfg(any(test, feature = "testing"))]
45+
#[cfg(test)]
4646
pub const NEIGHBOR_MINIMUM_CONTACT_INTERVAL: u64 = 0;
47-
#[cfg(not(any(test, feature = "testing")))]
47+
#[cfg(not(test))]
4848
pub const NEIGHBOR_MINIMUM_CONTACT_INTERVAL: u64 = 600;
4949

5050
/// Default number of seconds to wait for a reply from a neighbor

0 commit comments

Comments
 (0)