Not skiping tests on commands, and removing unnecesary main_test.go files (#14032)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
27d536b212
Коммит
7c3e651a7b
@@ -8,6 +8,7 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost-server/v5/api4"
|
||||
"github.com/mattermost/mattermost-server/v5/testlib"
|
||||
)
|
||||
|
||||
@@ -28,6 +29,7 @@ func TestMain(m *testing.M) {
|
||||
|
||||
mainHelper = testlib.NewMainHelperWithOptions(&options)
|
||||
defer mainHelper.Close()
|
||||
api4.SetMainHelper(mainHelper)
|
||||
|
||||
mainHelper.Main(m)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user