pub fn watch_network_changes_with<F>( provider: F, period: Duration, ) -> NetworkWatchwhere F: FnMut() -> Vec<IpAddr> + Send + 'static,
Test seam: same watcher with an injected address provider and period.