Skip to content

Commit

Permalink
Restore certificate filter test
Browse files Browse the repository at this point in the history
  • Loading branch information
godrei committed Oct 9, 2024
1 parent 4c838ae commit bf7ca8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions certificateutil/filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ func TestFilterValidCertificateInfos(t *testing.T) {
},
{
name: "2 valid, duplicated certs",
certificateInfos: []CertificateInfoModel{latestValidCertInfo, latestValidCertInfo},
certificateInfos: []CertificateInfoModel{latestValidCertInfo, earlierValidCertInfo, invalidCertInfo},
want: ValidCertificateInfo{
ValidCertificates: []CertificateInfoModel{latestValidCertInfo},
DuplicatedCertificates: []CertificateInfoModel{latestValidCertInfo},
InvalidCertificates: []CertificateInfoModel{invalidCertInfo},
DuplicatedCertificates: []CertificateInfoModel{earlierValidCertInfo},
},
},
}
Expand Down

0 comments on commit bf7ca8d

Please sign in to comment.