Skip to content

Commit 231c089

Browse files
authored
Merge pull request #131 from wa5i/ci
ci: add cargo fmt --all -- --check
2 parents 2b9d99c + 44cf7dd commit 231c089

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/rust.yml

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929

3030
steps:
3131
- uses: actions/checkout@v3
32+
- name: Run cargo fmt --all -- --check
33+
run: cargo fmt --all -- --check
3234
- name: Build
3335
run: cargo build --verbose
3436
- name: ulimit -n

src/modules/pki/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,6 @@ mod test {
335335
let expect_ttl = 10 * 24 * 60 * 60;
336336
println!("ttl: {}, expect_ttl: {}", ttl, expect_ttl);
337337
assert!(ttl <= expect_ttl);
338-
assert!((ttl + 10) >= expect_ttl);
339338

340339
let authority_key_id = cert.authority_key_id();
341340
assert!(authority_key_id.is_some());
@@ -533,7 +532,6 @@ x/+V28hUf8m8P2NxP5ALaDZagdaMfzjGZo3O3wDv33Cds0P5GMGQYnRXDxcZN/2L
533532
let expect_ttl = 10 * 24 * 60 * 60;
534533
println!("ttl: {}, expect_ttl: {}", ttl, expect_ttl);
535534
assert!(ttl <= expect_ttl);
536-
assert!((ttl + 10) >= expect_ttl);
537535

538536
//test fetch cert
539537
let serial_number_hex = cert_data["serial_number"].as_str().unwrap();

0 commit comments

Comments
 (0)