Skip to content

Commit

Permalink
remove unused rootPool var (sigstore#3559)
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry S <[email protected]>
  • Loading branch information
dmitris authored and tommyd450 committed Jun 7, 2024
1 parent 22b87bf commit 5ba6a77
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"crypto"
"crypto/rand"
"crypto/sha256"
"crypto/x509"
"encoding/base64"
"encoding/json"
"encoding/pem"
Expand Down Expand Up @@ -935,9 +934,6 @@ func TestAttachWithRFC3161Timestamp(t *testing.T) {
pemSub := pem.EncodeToMemory(&pem.Block{Type: "CERTIFICATE", Bytes: subCert.Raw})
pemLeaf := pem.EncodeToMemory(&pem.Block{Type: "CERTIFICATE", Bytes: leafCert.Raw})

rootPool := x509.NewCertPool()
rootPool.AddCert(rootCert)

payloadref := mkfile(b.String(), td, t)

h := sha256.Sum256(b.Bytes())
Expand Down Expand Up @@ -1008,9 +1004,6 @@ func TestAttachWithRekorBundle(t *testing.T) {
pemSub := pem.EncodeToMemory(&pem.Block{Type: "CERTIFICATE", Bytes: subCert.Raw})
pemLeaf := pem.EncodeToMemory(&pem.Block{Type: "CERTIFICATE", Bytes: leafCert.Raw})

rootPool := x509.NewCertPool()
rootPool.AddCert(rootCert)

payloadref := mkfile(b.String(), td, t)

h := sha256.Sum256(b.Bytes())
Expand Down

0 comments on commit 5ba6a77

Please sign in to comment.