Fixing certificate test

This commit is contained in:
Eduardo Vozniak 2023-09-27 09:03:47 -03:00
parent 6061f28914
commit dcfda9e25b
No known key found for this signature in database
GPG Key ID: ACB52F85E23B1C50
1 changed files with 2 additions and 0 deletions

View File

@ -208,6 +208,8 @@ func TestGetCertPool(t *testing.T) {
certFile2 := makeTestCertFile(t, root2Cert, tempDir)
certPool, err := GetCertPool([]string{certFile1.Name(), certFile2.Name()})
certFile1.Close()
certFile2.Close()
assert.NoError(t, err)
cert1Block, _ := pem.Decode([]byte(cert1Cert))