Skip to content

Commit 5bd7067

Browse files
authored
Add a missing name to the *testing.T argument. (#425)
When using t.Run, the subtest must take a named *testing.T argument. Otherwise, inner calls to t.Error etc. are invoked on the outer test object, which is pretty much always wrong. Signed-off-by: Matt Harden <[email protected]>
1 parent 0f8a320 commit 5bd7067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proc_psi_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
)
2020

2121
func TestPSIStats(t *testing.T) {
22-
t.Run("fake", func(*testing.T) {
22+
t.Run("fake", func(t *testing.T) {
2323
stats, err := getProcFixtures(t).PSIStatsForResource("fake")
2424
if err == nil {
2525
t.Fatal("fake resource does not have PSI statistics")

0 commit comments

Comments
 (0)