From 1bb5402e1c7dd39e01821e1a80b36d8b0bbf13a3 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Thu, 19 Sep 2024 18:17:15 +0800 Subject: [PATCH] bug: fix wrong parameter for testcase Signed-off-by: cuishuang --- certdb/ocspstapling/ocspstapling_test.go | 2 +- helpers/helpers_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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