File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ fn test_cert_expiry_calculation() {
203203 // The implementation uses 730 + 90 = 820 days (2 years + 3 months)
204204 // Allow for small time differences during test execution
205205 assert ! (
206- diff >= 819 && diff <= 821 ,
206+ ( 819 ..= 821 ) . contains ( & diff ) ,
207207 "Certificate should be valid for approximately 820 days, got {} days" ,
208208 diff
209209 ) ;
Original file line number Diff line number Diff line change @@ -300,15 +300,11 @@ fn test_generate_file_names_single() {
300300 pkcs12 : false ,
301301 } ;
302302
303- let ( cert, key , _) = fastcert:: cert:: generate_file_names ( & config) ;
303+ let ( cert, _key , _) = fastcert:: cert:: generate_file_names ( & config) ;
304304 assert ! (
305305 cert. to_str( ) . unwrap( ) . contains( "example.com" ) ,
306306 "Cert file should contain domain"
307307 ) ;
308- assert ! (
309- key. to_str( ) . unwrap( ) . contains( "example.com" ) ,
310- "Key file should contain domain"
311- ) ;
312308}
313309
314310#[ test]
You can’t perform that action at this time.
0 commit comments