MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_delay_zero_base

Function test_delay_zero_base

core/src/retry.rs:311–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

309
310 #[test]
311 fn test_delay_zero_base() {
312 let config = RetryConfig {
313 base_delay_ms: 0,
314 max_delay_ms: 1000,
315 ..Default::default()
316 };
317 let d = config.delay_for_attempt(0);
318 assert_eq!(d.as_millis(), 0);
319 }
320
321 // ========================================================================
322 // Retry-After header parsing

Callers

nothing calls this directly

Calls 1

delay_for_attemptMethod · 0.80

Tested by

no test coverage detected