mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-06 11:02:41 +03:00
Use args struct for RunTests
There were too many position arguments
This commit is contained in:
@@ -29,17 +29,17 @@ func RunCLI(testNames []string, slow bool, sandbox bool, waitForDebugger bool, r
|
||||
inputDelay = SLOW_INPUT_DELAY
|
||||
}
|
||||
|
||||
err := components.RunTests(
|
||||
getTestsToRun(testNames),
|
||||
log.Printf,
|
||||
runCmdInTerminal,
|
||||
runAndPrintFatalError,
|
||||
sandbox,
|
||||
waitForDebugger,
|
||||
raceDetector,
|
||||
inputDelay,
|
||||
1,
|
||||
)
|
||||
err := components.RunTests(components.RunTestArgs{
|
||||
Tests: getTestsToRun(testNames),
|
||||
Logf: log.Printf,
|
||||
RunCmd: runCmdInTerminal,
|
||||
TestWrapper: runAndPrintFatalError,
|
||||
Sandbox: sandbox,
|
||||
WaitForDebugger: waitForDebugger,
|
||||
RaceDetector: raceDetector,
|
||||
InputDelay: inputDelay,
|
||||
MaxAttempts: 1,
|
||||
})
|
||||
if err != nil {
|
||||
log.Print(err.Error())
|
||||
}
|
||||
|
Reference in New Issue
Block a user