diff --git a/cmd/mattermost/commands/command_test.go b/cmd/mattermost/commands/command_test.go index 2f44dd6f9d..01648964be 100644 --- a/cmd/mattermost/commands/command_test.go +++ b/cmd/mattermost/commands/command_test.go @@ -159,7 +159,7 @@ func TestDeleteCommand(t *testing.T) { require.Nil(t, err) assert.Equal(t, len(commands), 1) - CheckCommand(t, "command", "delete", command.Id) + assert.Nil(t, RunCommand(t, "command", "delete", command.Id)) commands, err = th.App.ListTeamCommands(team.Id) require.Nil(t, err) assert.Equal(t, len(commands), 0)