diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-30 19:31:17 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-30 19:31:17 +0100 |
commit | d2a37fc8afe359fc9bca6f5f67d9d976a8675803 (patch) | |
tree | bd2d2158878878b248f6f8aeb50efcdd4abf8e39 /crypto_test.go | |
parent | 317b64b20bb44c37f6aef0008e65b18ab806cd51 (diff) |
made a few tests more robust and found error
Diffstat (limited to 'crypto_test.go')
-rw-r--r-- | crypto_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto_test.go b/crypto_test.go index b6c168b..6233613 100644 --- a/crypto_test.go +++ b/crypto_test.go @@ -51,6 +51,7 @@ func TestBuildChainFromDerList(t *testing.T) { maxChain: 3, anchors: testdata.RootCertificate, chain: mustMakeDerList(t, testdata.ExpiredChain), + wantErr: false, // TODO: should be true! fixme }, { description: "bad chain: too large", @@ -280,8 +281,6 @@ func TestGenV1Sth(t *testing.T) { } } -// TODO: test that metrics are updated correctly? - // mustMakeDerList must parse a PEM-encoded list of certificates to DER func mustMakeDerList(t *testing.T, pem []byte) [][]byte { certs, err := x509util.NewCertificateList(pem) |