From cd74dad2c3bcfa18e1d2f85def2ee3ec547d38f3 Mon Sep 17 00:00:00 2001 From: Quim Muntal Date: Tue, 10 Sep 2024 15:05:10 +0200 Subject: [PATCH] fix TestHMAC when using the SymCrypt provider (#175) --- hmac_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hmac_test.go b/hmac_test.go index 89fce750..2028a892 100644 --- a/hmac_test.go +++ b/hmac_test.go @@ -21,6 +21,9 @@ func TestHMAC(t *testing.T) { t.Run(tt.name, func(t *testing.T) { t.Parallel() h := NewHMAC(tt.fn, nil) + if h == nil { + t.Skip("digest not supported") + } h.Write([]byte("hello")) sumHello := h.Sum(nil)