From d2a37fc8afe359fc9bca6f5f67d9d976a8675803 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Mon, 30 Nov 2020 19:31:17 +0100 Subject: made a few tests more robust and found error --- crypto_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crypto_test.go') 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) -- cgit v1.2.3