Fix ci failures (#3432)

This commit is contained in:
Glen De Cauwsemaecker
2025-09-28 19:22:35 +02:00
committed by Jonas Platte
parent f736e9f24e
commit d88b39897b
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ mod time_library {
static COUNTER: AtomicU64 = AtomicU64::new(0);
// Fail on every third call just to simulate errors
if COUNTER.fetch_add(1, Ordering::SeqCst) % 3 == 0 {
if COUNTER.fetch_add(1, Ordering::SeqCst).is_multiple_of(3) {
Err(Error::FailedToGetTime)
} else {
Ok(Self(1337))