[fix](trx-server): wire TimeoutsConfig into example config and fix test signatures
- Include TimeoutsConfig in --print-config example output - Update run_listener() test call sites with new parameters https://claude.ai/code/session_01P9G7QCWfiYbPVJ7cgiXznf Signed-off-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -790,6 +790,7 @@ impl ServerConfig {
|
||||
aprsfi: AprsFiConfig::default(),
|
||||
decode_logs: DecodeLogsConfig::default(),
|
||||
sdr: SdrConfig::default(),
|
||||
timeouts: TimeoutsConfig::default(),
|
||||
rigs: Vec::new(),
|
||||
};
|
||||
toml::to_string_pretty(&Wrapper { inner: example }).unwrap_or_default()
|
||||
|
||||
@@ -597,7 +597,7 @@ mod tests {
|
||||
|
||||
let mut auth = HashSet::new();
|
||||
auth.insert("secret".to_string());
|
||||
let handle = tokio::spawn(run_listener(addr, rigs, default_id, auth, shutdown_rx));
|
||||
let handle = tokio::spawn(run_listener(addr, rigs, default_id, auth, None, ListenerTimeouts::default(), shutdown_rx));
|
||||
|
||||
let stream = TcpStream::connect(addr).await.expect("connect");
|
||||
let (reader, mut writer) = stream.into_split();
|
||||
@@ -633,6 +633,8 @@ mod tests {
|
||||
rigs,
|
||||
default_id,
|
||||
HashSet::new(),
|
||||
None,
|
||||
ListenerTimeouts::default(),
|
||||
shutdown_rx,
|
||||
));
|
||||
|
||||
@@ -674,6 +676,8 @@ mod tests {
|
||||
rigs,
|
||||
default_id,
|
||||
HashSet::new(),
|
||||
None,
|
||||
ListenerTimeouts::default(),
|
||||
shutdown_rx,
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user