test: strengthen durable behavior coverage after review

This commit is contained in:
Nils Andreas Svee committed 2026-10-02 15:14:05 +07:00
1 parent 3290a7508a
commit e115b96f21
14 files changed
+1063 -85

No files matched your search

+10
View File
@@ -145,3 +145,13 @@ async fn exercise_bound_server(mut server: Server) {
fn unthrottled() -> ServerConfig {
ServerConfig::default().with_min_send_interval(Duration::ZERO)
}
#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "freebsd")))]
#[tokio::test(flavor = "current_thread")]
async fn wildcard_construction_is_refused_without_reply_source_selection() {
let addr = "0.0.0.0:0".parse().unwrap();
assert!(matches!(
Server::bind(addr, unthrottled()).await,
Err(ServerRuntimeError::WildcardSourceSelectionUnsupported { .. })
));
}