//! Tests for the inventory registry.
use broadcast;
use crate;
/// The number of changes that can be pending in the inventory channel, before it starts lagging.
///
/// Lagging drops messages, so tests should avoid filling the channel.
pub const MAX_PENDING_CHANGES: usize = 32;
/// Returns a newly initialised inventory registry, and a sender for its inventory channel.