diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 15:20:36 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | fb9b6314a0439999079a511d83427744de973f60 (patch) | |
tree | 9eb1f59a1a38d69bfefc59e1cbee26dcfdb62c19 /pkg/gui/gui_test.go | |
parent | 0719a3e36e530ebc6716538ef4581d1929df8ab9 (diff) |
ensure we're passing the right testing struct pointer around
Diffstat (limited to 'pkg/gui/gui_test.go')
-rw-r--r-- | pkg/gui/gui_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/gui_test.go b/pkg/gui/gui_test.go index 43c426e53..b44f04513 100644 --- a/pkg/gui/gui_test.go +++ b/pkg/gui/gui_test.go @@ -43,16 +43,16 @@ func Test(t *testing.T) { err := integration.RunTests( t.Logf, runCmdHeadless, - func(test *integration.Test, f func() error) { + func(test *integration.Test, f func(*testing.T) error) { t.Run(test.Name, func(t *testing.T) { - err := f() + err := f(t) assert.NoError(t, err) }) }, updateSnapshots, record, speedEnv, - func(expected string, actual string) { + func(t *testing.T, expected string, actual string) { assert.Equal(t, expected, actual, fmt.Sprintf("expected:\n%s\nactual:\n%s\n", expected, actual)) }, ) |