test: strengthen durable behavior coverage after review
This commit is contained in:
14 files changed
+1063
-85
No files matched your search
@@ -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 { .. })
|
||||
));
|
||||
}
|
||||
Reference in new issue
Block a user