File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ fn wait_timeout_with_lock() {
2323 spawn ( async move {
2424 let ( m, c) = & * pair2;
2525 let _g = m. lock ( ) . await ;
26- task:: sleep ( Duration :: from_millis ( 20 ) ) . await ;
26+ task:: sleep ( Duration :: from_millis ( 200 ) ) . await ;
2727 c. notify_one ( ) ;
2828 } ) ;
2929
3030 let ( m, c) = & * pair;
3131 let ( _, wait_result) = c
32- . wait_timeout ( m. lock ( ) . await , Duration :: from_millis ( 10 ) )
32+ . wait_timeout ( m. lock ( ) . await , Duration :: from_millis ( 100 ) )
3333 . await ;
3434 assert ! ( wait_result. timed_out( ) ) ;
3535 } )
@@ -57,7 +57,7 @@ fn wait_timeout_until_timed_out() {
5757 let c = Condvar :: new ( ) ;
5858
5959 let ( _, wait_result) = c
60- . wait_timeout_until ( m. lock ( ) . await , Duration :: from_millis ( 10 ) , |& mut started| {
60+ . wait_timeout_until ( m. lock ( ) . await , Duration :: from_millis ( 100 ) , |& mut started| {
6161 started
6262 } )
6363 . await ;
@@ -85,7 +85,7 @@ fn notify_all() {
8585 }
8686
8787 // Give some time for tasks to start up
88- task:: sleep ( Duration :: from_millis ( 5 ) ) . await ;
88+ task:: sleep ( Duration :: from_millis ( 50 ) ) . await ;
8989
9090 let ( m, c) = & * pair;
9191 {
You can’t perform that action at this time.
0 commit comments