Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
Two-Hearts committed Jun 18, 2024
1 parent 1a24903 commit d22e809
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions verifier/truststore/truststore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,10 @@ var trustStore = NewX509TrustStore(dir.NewSysFS(filepath.FromSlash("../testdata/

// TestLoadTrustStore tests a valid trust store
func TestLoadValidTrustStore(t *testing.T) {
certs, err := trustStore.GetCertificates(context.Background(), "ca", "valid-trust-store")
_, err := trustStore.GetCertificates(context.Background(), "ca", "valid-trust-store")
if err != nil {
t.Fatalf("could not get certificates from trust store. %q", err)
}
if len(certs) != 4 {
t.Fatalf("unexpected number of certificates in the trust store, expected: %d, got: %d", 4, len(certs))
}
}

// TestLoadValidTrustStoreWithSelfSignedSigningCertificate tests a valid trust store with self-signed signing certificate
Expand Down

0 comments on commit d22e809

Please sign in to comment.