leverage CheckCommand when a cmd should pass (#9944)
Using RunCommand obscures the error if, indeed, the assertion fails because the cmd fails to run.
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
aba194188f
Коммит
a317093467
@@ -158,7 +158,7 @@ func TestDeleteCommand(t *testing.T) {
|
||||
require.Nil(t, err)
|
||||
assert.Equal(t, len(commands), 1)
|
||||
|
||||
assert.Nil(t, RunCommand(t, "command", "delete", command.Id))
|
||||
CheckCommand(t, "command", "delete", command.Id)
|
||||
commands, err = th.App.ListTeamCommands(team.Id)
|
||||
require.Nil(t, err)
|
||||
assert.Equal(t, len(commands), 0)
|
||||
|
||||
Ссылка в новой задаче
Block a user