pinakes-core: use checked_sub for Instant arithmetic in pipeline tests
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I785a8e5e521581c78024252fc5baf5616a6a6964
This commit is contained in:
parent
7a6d602eed
commit
4834208f9f
1 changed files with 4 additions and 2 deletions
|
|
@ -1258,7 +1258,8 @@ mod tests {
|
|||
Instant::now()
|
||||
.checked_sub(CIRCUIT_BREAKER_COOLDOWN)
|
||||
.unwrap()
|
||||
- Duration::from_secs(1),
|
||||
.checked_sub(Duration::from_secs(1))
|
||||
.unwrap(),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -1277,7 +1278,8 @@ mod tests {
|
|||
Instant::now()
|
||||
.checked_sub(CIRCUIT_BREAKER_COOLDOWN)
|
||||
.unwrap()
|
||||
- Duration::from_secs(1),
|
||||
.checked_sub(Duration::from_secs(1))
|
||||
.unwrap(),
|
||||
);
|
||||
}
|
||||
assert!(pipeline.is_healthy(plugin_id).await);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue