[MM-57743] Enable errcheck linter (#26723)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5746bb8df3
Коммит
32d93fd469
@@ -37,7 +37,8 @@ func (s *MmctlUnitTestSuite) TestArgumentsHaveWhitespaceTrimmed() {
|
||||
mockCommand := &cobra.Command{Use: "test", Run: commandFunction}
|
||||
commandString := strings.Join([]string{"test", " ", arguments[0], lineEnding, " ", arguments[1], lineEnding}, "")
|
||||
RootCmd.AddCommand(mockCommand)
|
||||
executeRawCommand(RootCmd, commandString)
|
||||
_, _, err := executeRawCommand(RootCmd, commandString)
|
||||
s.Require().NoError(err)
|
||||
s.Require().True(commandCalled, "Expected mock command to be called")
|
||||
})
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user