Skip to content

Commit

Permalink
fix pass t to helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
haoming29 committed Oct 6, 2023
1 parent 1d6c27e commit 50684af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestRunCLIVersionFlag(t *testing.T) {
},
}

batchTest := func(arguments []string, expected string) {
batchTest := func(t *testing.T, arguments []string, expected string) {
// Redirect output to a pip
oldStdout := os.Stdout
r, w, _ := os.Pipe()
Expand All @@ -87,7 +87,7 @@ func TestRunCLIVersionFlag(t *testing.T) {

for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
batchTest(tc.args, tc.expected)
batchTest(t, tc.args, tc.expected)
})
}
}

0 comments on commit 50684af

Please sign in to comment.