* use mkdirall instead of mkdir

* revert

* create the folder here
Этот коммит содержится в:
Carlos Tadeu Panato Junior
2019-09-18 18:39:01 +02:00
коммит произвёл GitHub
родитель 581cdf158c
Коммит c7b583ccdd
2 изменённых файлов: 9 добавлений и 14 удалений

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

@@ -9,7 +9,6 @@ import (
"net"
"net/http"
"os"
"path/filepath"
"reflect"
"strconv"
"strings"
@@ -138,16 +137,6 @@ func setupTestHelper(enterprise bool, updateConfig func(*model.Config)) *TestHel
th.tempWorkspace = dir
}
pluginDir := filepath.Join(th.tempWorkspace, "plugins")
webappDir := filepath.Join(th.tempWorkspace, "webapp")
th.App.UpdateConfig(func(cfg *model.Config) {
*cfg.PluginSettings.Directory = pluginDir
*cfg.PluginSettings.ClientDirectory = webappDir
})
th.App.InitPlugins(pluginDir, webappDir)
return th
}