Fix TestMake to use correct testing.T variable

This commit is contained in:
Dan Jones 2025-09-26 20:46:22 -05:00
commit 670b0bfd90

View file

@ -9,7 +9,7 @@ import (
var errTest = errors.New("sorry")
func TestMake(t *testing.T) {
func TestMake(tt *testing.T) {
genOpt := WithGenerator(func(*Config) (string, error) { return "abc", nil })
testcases := []struct {
name string
@ -37,7 +37,7 @@ func TestMake(t *testing.T) {
}
for _, testcase := range testcases {
t.Run(testcase.name, func(sub *testing.T) {
tt.Run(testcase.name, func(t *testing.T) {
opts := testcase.opts
opts = append(opts, genOpt)