6c9e7f8
commit 6c9e7f8
1 file changed
+4 -0
Showing 1 changed file+4-0
▼crates/justapi-core/src/resilience.rs
+4-0
| @@ -643,6 +643,8 @@ mod tests { | ||
643 | 643 | assert_eq!(resp.status(), StatusCode::SERVICE_UNAVAILABLE); |
644 | 644 | } |
645 | 645 | |
646 | + /// Skipped under Miri: timing-sensitive test, Miri is too slow for precise timing. | |
647 | + #[cfg(not(miri))] | |
646 | 648 | #[tokio::test] |
647 | 649 | async fn test_circuit_breaker_recovery() { |
648 | 650 | let config = CircuitBreakerConfig { |
| @@ -1095,6 +1097,8 @@ mod tests { | ||
1095 | 1097 | assert_eq!(resp.status(), StatusCode::SERVICE_UNAVAILABLE); |
1096 | 1098 | } |
1097 | 1099 | |
1100 | + /// Skipped under Miri: timing-sensitive test, Miri is too slow for precise timing. | |
1101 | + #[cfg(not(miri))] | |
1098 | 1102 | #[tokio::test] |
1099 | 1103 | async fn test_circuit_breaker_half_open_limited_probe() { |
1100 | 1104 | let config = CircuitBreakerConfig { |
1101 | 1105 | |