Skip to content

Commit aae4bac

Browse files
fix(test): validate that test panics
Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org>
1 parent 0fdce07 commit aae4bac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

to_delete_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ package ffclient_test
33
import (
44
"testing"
55

6+
"github.com/stretchr/testify/assert"
67
"github.com/thomaspoignant/go-feature-flag/modules/core"
78
"github.com/thomaspoignant/go-feature-flag/modules/evaluation"
89
)
910

1011
func TestToDelete(t *testing.T) {
11-
core.Core()
12-
evaluation.Evaluation()
12+
assert.Panics(t, func() { core.Core() }, "core.Core() should panic")
13+
assert.Panics(t, func() { evaluation.Evaluation() }, "evaluation.Evaluation() should panic")
1314
}

0 commit comments

Comments
 (0)