File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
[profile .default ]
2
2
test-threads = 1
3
+ fail-fast = false
3
4
slow-timeout = { period = " 30s" , terminate-after = 4 }
4
- fail-fast = false
5
+ retries = { backoff = " fixed " , count = 2 , delay = " 1s " }
Original file line number Diff line number Diff line change @@ -24,6 +24,6 @@ pub fn sleep_on_test() {
24
24
#[ cfg( test) ]
25
25
{
26
26
use std:: { thread, time} ;
27
- thread:: sleep ( time:: Duration :: from_millis ( 200 ) ) ;
27
+ thread:: sleep ( time:: Duration :: from_millis ( 100 ) ) ;
28
28
}
29
29
}
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ impl ProcessHandler for Counter {
55
55
self . frames_since_cycle_start = ps. frames_since_cycle_start ( ) ;
56
56
let _cycle_times = ps. cycle_times ( ) ;
57
57
if self . induce_xruns {
58
- thread:: sleep ( time:: Duration :: from_millis ( 400 ) ) ;
58
+ thread:: sleep ( time:: Duration :: from_millis ( 100 ) ) ;
59
59
self . induce_xruns = false ;
60
60
}
61
61
self . process_thread = Some ( thread:: current ( ) . id ( ) ) ;
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ use crate::PORT_NAME_SIZE;
8
8
use std:: collections:: HashSet ;
9
9
use std:: sync:: mpsc;
10
10
use std:: sync:: Mutex ;
11
- use std:: { thread, time} ;
12
-
13
11
fn open_test_client ( name : & str ) -> Client {
14
12
Client :: new ( name, ClientOptions :: NO_START_SERVER ) . unwrap ( ) . 0
15
13
}
@@ -371,7 +369,6 @@ fn client_port_can_get_port_by_type_pattern() {
371
369
372
370
// register port with type name, like midi
373
371
let _p = client. register_port ( p_name, MidiIn ) ;
374
- thread:: sleep ( time:: Duration :: from_millis ( 400 ) ) ;
375
372
376
373
// retrieve
377
374
let ports = client. ports ( None , Some ( "midi" ) , PortFlags :: empty ( ) ) ;
You can’t perform that action at this time.
0 commit comments