Fix ci failures (#3432)

This commit is contained in:
Glen De Cauwsemaecker
2025-08-13 10:53:53 +02:00
committed by GitHub
parent 7f5cea0e6b
commit d66cabd5e9
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))