diff --git a/certdb/ocspstapling/ocspstapling_test.go b/certdb/ocspstapling/ocspstapling_test.go index 279703179..964cc6e71 100644 --- a/certdb/ocspstapling/ocspstapling_test.go +++ b/certdb/ocspstapling/ocspstapling_test.go @@ -106,7 +106,7 @@ func TestStapleSCTList(t *testing.T) { sctA.Timestamp == sctB.Timestamp && bytes.Equal(sctA.Extensions, sctB.Extensions) && sctA.Signature.Algorithm == sctB.Signature.Algorithm && - bytes.Equal(sctA.Signature.Signature, sctA.Signature.Signature) { + bytes.Equal(sctA.Signature.Signature, sctB.Signature.Signature) { return true } return false diff --git a/helpers/helpers_test.go b/helpers/helpers_test.go index bbc74d38e..c68dfe554 100644 --- a/helpers/helpers_test.go +++ b/helpers/helpers_test.go @@ -565,7 +565,7 @@ func sctEquals(sctA, sctB ct.SignedCertificateTimestamp) bool { sctA.Timestamp == sctB.Timestamp && bytes.Equal(sctA.Extensions, sctB.Extensions) && sctA.Signature.Algorithm == sctB.Signature.Algorithm && - bytes.Equal(sctA.Signature.Signature, sctA.Signature.Signature) { + bytes.Equal(sctA.Signature.Signature, sctB.Signature.Signature) { return true } return false