()
| 274 | |
| 275 | #[test] |
| 276 | fn pause_budget_exceeded() { |
| 277 | let mut m = test_migration(); |
| 278 | m.start_base_copy(100); |
| 279 | m.start_wal_catchup(0, 5); |
| 280 | m.update_wal_catchup(5, 5); |
| 281 | |
| 282 | // Budget is 1000µs, estimated is 2000µs. |
| 283 | let err = m.start_cutover(2000).unwrap_err(); |
| 284 | assert!(matches!( |
| 285 | err, |
| 286 | crate::ClusterError::MigrationPauseBudgetExceeded { .. } |
| 287 | )); |
| 288 | } |
| 289 | |
| 290 | #[test] |
| 291 | fn failure_recovery() { |
nothing calls this directly
no test coverage detected