File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -103,14 +103,8 @@ fn try_unwrap() {
103
103
104
104
#[ test]
105
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
106
for _ in 0 ..100
113
- // ^ increase chances of hitting uncommon race conditions
107
+ // ^ increase chances of hitting potential race conditions
114
108
{
115
109
let x = Arc :: new ( 3 ) ;
116
110
let y = Arc :: clone ( & x) ;
You can’t perform that action at this time.
0 commit comments