Skip to content

Commit

Permalink
Ideally it'd be RunSuite[T] instead of RunSuite[*T] but pointer recei…
Browse files Browse the repository at this point in the history
…ver complaints
  • Loading branch information
serprex committed Nov 9, 2023
1 parent d556218 commit 4052449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/e2e/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func RunSuite[T Suite](t *testing.T) {
if strings.HasPrefix(method.Name, "Test_") {
t.Run(method.Name, func(t *testing.T) {
t.Parallel()
suite := reflect.New(e2etype).Interface().(T)
suite := reflect.New(e2etype.Elem()).Interface().(T)
if suite.SetupSuite(t) == nil {
method.Func.Call([]reflect.Value{reflect.ValueOf(suite), reflect.ValueOf(t)})
suite.TearDownSuite(t)
Expand Down

0 comments on commit 4052449

Please sign in to comment.