From 6744ee34a3865c6eaab0105923adbb5bd22e730f Mon Sep 17 00:00:00 2001 From: qmuntal Date: Tue, 26 Nov 2024 11:41:24 +0100 Subject: [PATCH] remove unnecessary test check --- ecdh_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ecdh_test.go b/ecdh_test.go index 4b2c6bd..da1e37f 100644 --- a/ecdh_test.go +++ b/ecdh_test.go @@ -273,8 +273,6 @@ func TestECDHNewPrivateKeyECDH_Invalid(t *testing.T) { t.Errorf("unexpectedly accepted %q", input) } else if k != nil { t.Error("PrivateKey was not nil on error") - } else if strings.Contains(err.Error(), "boringcrypto") { - t.Errorf("boringcrypto error leaked out: %v", err) } } }) @@ -290,8 +288,6 @@ func TestECDHNewPublicKeyECDH_Invalid(t *testing.T) { t.Errorf("unexpectedly accepted %q", input) } else if k != nil { t.Error("PublicKey was not nil on error") - } else if strings.Contains(err.Error(), "boringcrypto") { - t.Errorf("boringcrypto error leaked out: %v", err) } } })