@@ -9,7 +9,7 @@ use std::time::Duration;
99use borsh:: { BorshDeserialize , BorshSerialize } ;
1010use qos_core:: {
1111 client:: SocketClient ,
12- io:: { SocketAddress , StreamPool , TimeVal , TimeValLike } ,
12+ io:: { SocketAddress , StreamPool } ,
1313 parser:: { GetParserForOptions , OptionsParser , Parser , Token } ,
1414} ;
1515
@@ -19,12 +19,16 @@ pub const PIVOT_OK_SUCCESS_FILE: &str = "./pivot_ok_works";
1919pub const PIVOT_OK2_SUCCESS_FILE : & str = "./pivot_ok2_works" ;
2020/// Path to the file `pivot_ok3` writes on success for tests.
2121pub const PIVOT_OK3_SUCCESS_FILE : & str = "./pivot_ok3_works" ;
22+ /// Path to the file `pivot_pool_size` writes on success for tests.
23+ pub const PIVOT_POOL_SIZE_SUCCESS_FILE : & str = "./pivot_pool_size_works" ;
2224/// Path to pivot_ok bin for tests.
2325pub const PIVOT_OK_PATH : & str = "../target/debug/pivot_ok" ;
2426/// Path to pivot_ok2 bin for tests.
2527pub const PIVOT_OK2_PATH : & str = "../target/debug/pivot_ok2" ;
2628/// Path to pivot_ok3 bin for tests.
2729pub const PIVOT_OK3_PATH : & str = "../target/debug/pivot_ok3" ;
30+ /// Path to pivot_pool_size bin for tests.
31+ pub const PIVOT_POOL_SIZE_PATH : & str = "../target/debug/pivot_pool_size" ;
2832/// Path to pivot loop bin for tests.
2933pub const PIVOT_LOOP_PATH : & str = "../target/debug/pivot_loop" ;
3034/// Path to pivot_abort bin for tests.
@@ -132,7 +136,7 @@ pub struct AdditionProofPayload {
132136pub async fn wait_for_usock ( path : & str ) {
133137 let addr = SocketAddress :: new_unix ( path) ;
134138 let pool = StreamPool :: new ( addr, 1 ) . unwrap ( ) . shared ( ) ;
135- let client = SocketClient :: new ( pool, TimeVal :: milliseconds ( 50 ) ) ;
139+ let client = SocketClient :: new ( pool, Duration :: from_millis ( 50 ) ) ;
136140
137141 for _ in 0 ..50 {
138142 if std:: fs:: exists ( path) . unwrap ( ) && client. try_connect ( ) . await . is_ok ( )
0 commit comments