From 351dc5ed45307287a92d967284ddff0e7db5a271 Mon Sep 17 00:00:00 2001 From: Vindaar Date: Thu, 30 May 2024 10:56:51 +0200 Subject: [PATCH] [Go] fix wrong check in test case, `err` can never `!nil` there --- constantine-go/constantine_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/constantine-go/constantine_test.go b/constantine-go/constantine_test.go index ed6d0e28..d7489866 100644 --- a/constantine-go/constantine_test.go +++ b/constantine-go/constantine_test.go @@ -988,7 +988,7 @@ func TestSign(t *testing.T) { return } status, err = sig.AreEqual(output) - if err != nil { + if !status { // signatures mismatch var sigBytes [96]byte var roundTrip [96]byte sb_status, _ := sig.SerializeCompressed(&sigBytes)