-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] CI test failure on arm #139
Comments
For now I can skip them with a |
What kind of hardware is your CI running? I cannot reproduce this failure on an M1 macbook (either in macOS or Linux via Docker). |
The CI is running on this debian kernel: |
This is likely a timing issue: the patch below addressed all that expect for the i386 arch. Index: r2d2/src/test.rs
===================================================================
--- r2d2.orig/src/test.rs
+++ r2d2/src/test.rs
@@ -486,10 +486,10 @@ fn test_max_lifetime() {
.build(Handler(AtomicIsize::new(5)))
.unwrap();
let conn = pool.get().unwrap();
- thread::sleep(Duration::from_secs(2));
+ thread::sleep(Duration::from_secs(3));
assert_eq!(4, DROPPED.load(Ordering::SeqCst));
drop(conn);
- thread::sleep(Duration::from_secs(2));
+ thread::sleep(Duration::from_secs(3));
assert_eq!(5, DROPPED.load(Ordering::SeqCst));
assert!(pool.get().is_err());
}
Maybe you can find a more elegant solution. |
Hi,
I packaged r2d2 for debian recently. The automated CI test fail on arm64 and armel:
The text was updated successfully, but these errors were encountered: