added tests, use specific CI

This commit is contained in:
2026-02-14 09:08:49 +01:00
parent 57f8a54dac
commit e664bf4620
12 changed files with 1388 additions and 5 deletions
+15
View File
@@ -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);
}
}