✅ Fix TestMake to use correct testing.T variable
This commit is contained in:
parent
4d723077e1
commit
670b0bfd90
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ import (
|
||||||
|
|
||||||
var errTest = errors.New("sorry")
|
var errTest = errors.New("sorry")
|
||||||
|
|
||||||
func TestMake(t *testing.T) {
|
func TestMake(tt *testing.T) {
|
||||||
genOpt := WithGenerator(func(*Config) (string, error) { return "abc", nil })
|
genOpt := WithGenerator(func(*Config) (string, error) { return "abc", nil })
|
||||||
testcases := []struct {
|
testcases := []struct {
|
||||||
name string
|
name string
|
||||||
|
|
@ -37,7 +37,7 @@ func TestMake(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, testcase := range testcases {
|
for _, testcase := range testcases {
|
||||||
t.Run(testcase.name, func(sub *testing.T) {
|
tt.Run(testcase.name, func(t *testing.T) {
|
||||||
opts := testcase.opts
|
opts := testcase.opts
|
||||||
opts = append(opts, genOpt)
|
opts = append(opts, genOpt)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue