MM-11905: delete plugin commands on removal (#9601)

* defer plugin tear down for testing

* test expected plugin command unregistration

* MM-11905: uninstall plugin commands on remove
Этот коммит содержится в:
Jesse Hallam
2018-10-10 13:56:54 -04:00
коммит произвёл Christopher Speller
родитель c36e85c912
Коммит e87965f39d
3 изменённых файлов: 147 добавлений и 21 удалений

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

@@ -120,6 +120,8 @@ func (a *App) removePlugin(id string) *model.AppError {
a.Publish(message)
}
a.UnregisterPluginCommands(id)
a.Plugins.Deactivate(id)
err = os.RemoveAll(pluginPath)