diff --git a/internal/backend/test/suite.go b/internal/backend/test/suite.go index 704b08fc5..00cff81bd 100644 --- a/internal/backend/test/suite.go +++ b/internal/backend/test/suite.go @@ -67,7 +67,7 @@ type testFunction struct { } func (s *Suite[C]) testFuncs(t testing.TB) (funcs []testFunction) { - tpe := reflect.TypeOf(s) + tpe := reflect.TypeFor[*Suite[C]]() v := reflect.ValueOf(s) for i := 0; i < tpe.NumMethod(); i++ { @@ -102,7 +102,7 @@ type benchmarkFunction struct { } func (s *Suite[C]) benchmarkFuncs(t testing.TB) (funcs []benchmarkFunction) { - tpe := reflect.TypeOf(s) + tpe := reflect.TypeFor[*Suite[C]]() v := reflect.ValueOf(s) for i := 0; i < tpe.NumMethod(); i++ {