File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ path = "../core"
1313
1414
1515[dev-dependencies ]
16- rand = " 0.6 "
17- criterion = " 0.3 "
18- crossbeam-utils = " 0.7 "
19- crossbeam = " 0.7 "
20- heapless = " 0.7 "
21- cfg-if = " 0.1 "
16+ rand = " 0.8 "
17+ criterion = " 0.5 "
18+ crossbeam-utils = " 0.8 "
19+ crossbeam = " 0.8 "
20+ heapless = " 0.8 "
21+ cfg-if = " 1.0 "
2222
2323[[bench ]]
2424name = " benches"
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ mod tests {
3333 let mut trng = thread_rng ( ) ;
3434 let mut chunks = vec ! [ ] ;
3535 while !data. is_empty ( ) {
36- let chunk_sz = trng. gen_range ( 1 , ( 1024 - 1 ) / 2 ) ;
36+ let chunk_sz = trng. gen_range ( 1 .. ( ( QUEUE_SIZE / 2 ) - 1 ) ) ;
3737 if chunk_sz > data. len ( ) {
3838 continue ;
3939 }
@@ -264,9 +264,9 @@ mod tests {
264264 if last_tx. elapsed ( ) > TIMEOUT_NODATA {
265265 panic ! ( "tx timeout" ) ;
266266 }
267- match tx
268- . grant_max_remaining ( trng. gen_range ( QUEUE_SIZE / 3 , ( 2 * QUEUE_SIZE ) / 3 ) )
269- {
267+ match tx. grant_max_remaining (
268+ trng. gen_range ( ( QUEUE_SIZE / 3 ) .. ( ( 2 * QUEUE_SIZE ) / 3 ) ) ,
269+ ) {
270270 Ok ( mut gr) => {
271271 let sz = :: std:: cmp:: min ( data_tx. len ( ) , gr. len ( ) ) ;
272272 for i in 0 ..sz {
You can’t perform that action at this time.
0 commit comments