File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -209,14 +209,10 @@ mod integration {
209209
210210 #[ tokio:: test]
211211 async fn test_bad_ohttp_keys ( ) {
212- let bad_ohttp_keys = OhttpKeys :: decode (
213- & base64:: decode_config (
214- "AQAg3WpRjS0aqAxQUoLvpas2VYjT2oIg6-3XSiB-QiYI1BAABAABAAM" ,
215- base64:: URL_SAFE ,
216- )
217- . expect ( "invalid base64" ) ,
218- )
219- . expect ( "Invalid OhttpKeys" ) ;
212+ let mut path = std:: path:: PathBuf :: from ( env ! ( "CARGO_MANIFEST_DIR" ) ) ;
213+ path. push ( "tests/ohttp-keys" ) ;
214+ let file_content = std:: fs:: read ( & path) . expect ( "Failed to read the 'ohttp-keys' file" ) ;
215+ let bad_ohttp_keys = OhttpKeys :: decode ( & file_content) . expect ( "Invalid OhttpKeys" ) ;
220216
221217 std:: env:: set_var ( "RUST_LOG" , "debug" ) ;
222218 let ( cert, key) = local_cert_key ( ) ;
You can’t perform that action at this time.
0 commit comments