mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-10 03:30:59 +00:00
test(core): avoid default retry delay in exhaustion test
This commit is contained in:
parent
d65c1fa635
commit
29eca2921d
1 changed files with 9 additions and 1 deletions
|
|
@ -1158,7 +1158,15 @@ mod tests {
|
|||
})
|
||||
}
|
||||
fn retry_policy(&self, _n: &TestNode, _g: &TestGraph) -> RetryPolicy {
|
||||
RetryPolicy::with_max_attempts(2)
|
||||
RetryPolicy {
|
||||
max_attempts: 2,
|
||||
backoff: BackoffPolicy {
|
||||
initial_delay: Duration::from_millis(1),
|
||||
factor: 1.0,
|
||||
max_delay: Duration::from_millis(1),
|
||||
jitter: false,
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
let g = TestGraph::new(vec![TestNode::new("start")], vec![], "start");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue