added tests, use specific CI
This commit is contained in:
@@ -74,3 +74,18 @@ pub async fn connectivity_mark_unreachable(
|
||||
monitor.mark_unreachable(error).await;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_connectivity_monitor_wrapper_structure() {
|
||||
// Test that wrapper can be created and holds Arc
|
||||
// We can't instantiate ConnectivityMonitor directly in tests
|
||||
// due to its dependencies, so we just test the wrapper type structure
|
||||
|
||||
// This verifies the wrapper type exists and can hold Arc<Mutex>
|
||||
assert_eq!(std::mem::size_of::<ConnectivityMonitorWrapper>() > 0, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user