Skip to content

Commit

Permalink
fix TestHMAC when using the SymCrypt provider (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal authored Sep 10, 2024
1 parent 6c842d7 commit cd74dad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hmac_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit cd74dad

Please sign in to comment.