diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-08-09 21:11:41 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-08-13 13:52:13 +1000 |
commit | d890238c7bcbdd62e7158df0c1f3f0e5c0b05b66 (patch) | |
tree | e753258bc980b968bee27eaf97c7566c5c317923 /test | |
parent | 46ae55f91e4feab67b01fcd63631dbaf47b3665f (diff) |
move input and assert into integration tests package
Diffstat (limited to 'test')
-rw-r--r-- | test/runner/main.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/runner/main.go b/test/runner/main.go index 691f0de4f..eef767564 100644 --- a/test/runner/main.go +++ b/test/runner/main.go @@ -5,7 +5,6 @@ import ( "log" "os" "os/exec" - "testing" "github.com/jesseduffield/lazygit/pkg/integration" "github.com/jesseduffield/lazygit/pkg/integration/integration_tests" @@ -43,16 +42,16 @@ func main() { err := integration.RunTestsNew( log.Printf, runCmdInTerminal, - func(test types.Test, f func(*testing.T) error) { + func(test types.Test, f func() error) { if selectedTestName != "" && test.Name() != selectedTestName { return } - if err := f(nil); err != nil { + if err := f(); err != nil { log.Print(err.Error()) } }, mode, - func(_t *testing.T, expected string, actual string, prefix string) { //nolint:thelper + func(expected string, actual string, prefix string) { //nolint:thelper assert.Equal(MockTestingT{}, expected, actual, fmt.Sprintf("Unexpected %s. Expected:\n%s\nActual:\n%s\n", prefix, expected, actual)) }, includeSkipped, |