We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00d50fe commit ca7066dCopy full SHA for ca7066d
library/alloc/src/sync/tests.rs
@@ -103,14 +103,8 @@ fn try_unwrap() {
103
104
#[test]
105
fn unwrap_or_drop() {
106
- // FIXME: Is doing this kind of loop reasonable? I tested `Arc::try_unwrap(x).ok()`
107
- // and it makes this kind of assertion fail in roughly every second run somewhere
108
- // between 1000 and 5000 iterations; I feel like doing a single iteration is too
109
- // unlikely to catch anything interesting but doing too many is way too slow
110
- // for a test that wouldn't ever fail for any reasonable implementation
111
-
112
for _ in 0..100
113
- // ^ increase chances of hitting uncommon race conditions
+ // ^ increase chances of hitting potential race conditions
114
{
115
let x = Arc::new(3);
116
let y = Arc::clone(&x);
0 commit comments