mirror of
https://github.com/telemt/telemt.git
synced 2026-09-18 00:08:32 +03:00
Runtime Ownership hardened
Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com>
This commit is contained in:
@@ -448,7 +448,10 @@ mod tests {
|
||||
tokio::task::yield_now().await;
|
||||
let drain = runtime.begin_shutdown();
|
||||
|
||||
assert!(runtime.try_http_connection().is_none());
|
||||
assert_eq!(
|
||||
runtime.try_http_connection().unwrap_err(),
|
||||
super::super::HttpConnectionAdmissionError::Closed
|
||||
);
|
||||
assert!(runtime.try_http_handler().is_none());
|
||||
assert!(runtime.try_lane_poll(false).is_none());
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user