()
| 298 | |
| 299 | #[test] |
| 300 | fn catchup_threshold() { |
| 301 | let mut m = test_migration(); |
| 302 | m.start_base_copy(100); |
| 303 | m.start_wal_catchup(0, 100); |
| 304 | |
| 305 | // Still 90 behind. |
| 306 | m.update_wal_catchup(10, 100); |
| 307 | assert!(!m.is_catchup_ready()); |
| 308 | |
| 309 | // Within 10. |
| 310 | m.update_wal_catchup(95, 100); |
| 311 | assert!(m.is_catchup_ready()); |
| 312 | } |
| 313 | } |
nothing calls this directly
no test coverage detected