Compare commits

..

4 commits

Author SHA1 Message Date
c6e3d714a7 build: upgrade docker image to use debian:stable-20240722-slim
All checks were successful
Rust / build (push) Successful in 1m22s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
2024-08-04 10:03:52 +01:00
c27d891b65 build: upgrade git-next-builder to 2024-08-04
All checks were successful
Rust / build (push) Successful in 1m42s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
2024-08-04 10:03:52 +01:00
347b9cb4dc build: add missing dependency libdbus-1-dev to correct Dockerfile
All checks were successful
Rust / build (push) Successful in 1m17s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
2024-08-04 10:03:52 +01:00
5d64692f31 test: timing test waits longer than expiry
All checks were successful
Rust / build (push) Successful in 1m52s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
2024-08-04 10:03:52 +01:00

View file

@ -35,6 +35,8 @@ fn when_history_has_expired_then_message_is_passed() {
let result = history.sendable(user_notification); let result = history.sendable(user_notification);
let_assert!(Some(user_notification) = result); let_assert!(Some(user_notification) = result);
std::thread::sleep(dur);
// twice the expiry duration to avoid things happening in the wrong order
std::thread::sleep(dur); std::thread::sleep(dur);
// after dur, message has expired, so is still valid // after dur, message has expired, so is still valid