[MM-57743] Enable errcheck linter (#26723)

Этот коммит содержится в:
Ben Schumacher
2024-04-29 11:23:01 +02:00
коммит произвёл GitHub
родитель 5746bb8df3
Коммит 32d93fd469
9 изменённых файлов: 56 добавлений и 35 удалений

Просмотреть файл

@@ -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")
})
}