Skip to content

Commit

Permalink
dont check panic if not debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdata committed Apr 26, 2024
1 parent 21652bc commit 9c6a983
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
"strings"
"sync/atomic"
"testing"

"github.com/linkdata/deadlock"
)

func TestTagExpand(t *testing.T) {
Expand Down Expand Up @@ -53,6 +55,10 @@ func TestTagExpand(t *testing.T) {
}

func TestTagExpand_IllegalTypesPanic(t *testing.T) {
if !deadlock.Debug {
t.Log("skipped, not debugging")
return
}
tags := []any{
string("string"),
template.HTML("template.HTML"),
Expand Down

0 comments on commit 9c6a983

Please sign in to comment.