We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1713890 commit aff240aCopy full SHA for aff240a
1 file changed
src/backends/deterministic.rs
@@ -61,7 +61,7 @@ mod tests {
61
use std::thread;
62
#[test]
63
fn test_deterministic_multithread() {
64
- thread::spawn(|| {
+ let jh = thread::spawn(|| {
65
let mut buf = [0u8; 32];
66
crate::fill(&mut buf).unwrap();
67
assert_eq!(
@@ -73,7 +73,7 @@ mod tests {
73
buf
74
);
75
});
76
+ let jh2 = thread::spawn(|| {
77
78
79
@@ -85,5 +85,8 @@ mod tests {
85
86
87
88
+
89
+ jh.join().unwrap();
90
+ jh2.join().unwrap();
91
}
92
0 commit comments