Skip to content

Commit

Permalink
chore(jans-cedarling): increase duration in test to avoid failure on …
Browse files Browse the repository at this point in the history
…PC on other PC

Signed-off-by: Oleh Bohzok <[email protected]>
  • Loading branch information
olehbozhok committed Jan 10, 2025
1 parent 5c3c3ce commit efdd675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jans-cedarling/sparkv/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ mod tests {
_ = sparkv.set_with_ttl(
"key",
"value",
Duration::new(0, 10000).expect("a valid duration"),
Duration::new(0, 40000).expect("a valid duration"),
);
assert_eq!(sparkv.get("key"), Some(String::from("value")));

std::thread::sleep(std::time::Duration::from_nanos(30000));
std::thread::sleep(std::time::Duration::from_nanos(50000));
assert_eq!(sparkv.get("key"), None);
}

Expand Down

0 comments on commit efdd675

Please sign in to comment.