File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,7 @@ jobs:
318
318
cargo update -p hashbrown --precise 0.15.0
319
319
cargo update -p native-tls --precise 0.2.13
320
320
cargo update -p once_cell --precise 1.20.3
321
+ cargo update -p tracing-core --precise 0.1.33
321
322
322
323
- uses : Swatinem/rust-cache@v2
323
324
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ async fn http3_test_concurrent_request() {
158
158
async fn http3_test_reconnection ( ) {
159
159
use std:: error:: Error ;
160
160
161
- use h3:: error:: StreamError ;
161
+ use h3:: error:: { ConnectionError , StreamError } ;
162
162
163
163
let server = server:: Http3 :: new ( ) . build ( |_| async { http:: Response :: default ( ) } ) ;
164
164
let addr = server. addr ( ) ;
@@ -197,8 +197,13 @@ async fn http3_test_reconnection() {
197
197
. downcast_ref :: < StreamError > ( )
198
198
. unwrap ( ) ;
199
199
200
- // Why is it so hard to inspect h3 errors? :/
201
- assert ! ( err. to_string( ) . contains( "Timeout" ) ) ;
200
+ assert ! ( matches!(
201
+ err,
202
+ StreamError :: ConnectionError {
203
+ 0 : ConnectionError :: Timeout { .. } ,
204
+ ..
205
+ }
206
+ ) ) ;
202
207
203
208
let server = server:: Http3 :: new ( )
204
209
. with_addr ( addr)
You can’t perform that action at this time.
0 commit comments