Fix missing errors in mmctl output (#30567)

Этот коммит содержится в:
Ben Schumacher
2025-03-28 09:30:41 +01:00
коммит произвёл GitHub
родитель 4156112f7c
Коммит 6c8235d031
7 изменённых файлов: 15 добавлений и 15 удалений

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

@@ -741,7 +741,7 @@ func (s *MmctlUnitTestSuite) TestCommandModifyCmd() {
s.Require().NotNil(err)
s.Len(printer.GetLines(), 0)
s.Len(printer.GetErrorLines(), 0)
s.EqualError(err, "unable to modify command '"+mockCommand.DisplayName+"'. "+mockError.Error())
s.EqualError(err, "unable to modify command '"+mockCommand.DisplayName+"': "+mockError.Error())
})
}
@@ -900,7 +900,7 @@ func (s *MmctlUnitTestSuite) TestCommandMoveCmd() {
err := moveCommandCmdF(s.client, &cobra.Command{}, []string{teamArg, commandArg})
s.Require().NotNil(err)
s.Require().EqualError(err, "unable to move command '"+commandArg+"'. "+mockError.Error())
s.Require().EqualError(err, "unable to move command '"+commandArg+"': "+mockError.Error())
s.Require().Len(printer.GetLines(), 0)
s.Require().Len(printer.GetErrorLines(), 0)
})