Этот коммит содержится в:
Jesse Hallam
2024-05-15 12:05:13 -03:00
коммит произвёл GitHub
родитель e96db725ea
Коммит cd51dec6e5
12 изменённых файлов: 36 добавлений и 71 удалений

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

@@ -13,7 +13,6 @@ import (
"net/http"
"net/http/httptest"
"os"
"path"
"path/filepath"
"sort"
"strings"
@@ -27,7 +26,7 @@ import (
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/plugin"
"github.com/mattermost/mattermost/server/public/plugin/utils"
"github.com/mattermost/mattermost/server/v8/channels/app/plugin_api_tests"
"github.com/mattermost/mattermost/server/v8"
"github.com/mattermost/mattermost/server/v8/channels/testlib"
"github.com/mattermost/mattermost/server/v8/channels/utils/fileutils"
)
@@ -1991,7 +1990,7 @@ func TestPluginWebSocketSession(t *testing.T) {
pluginID := "com.mattermost.websocket_session_test"
// Compile plugin
fullPath := path.Join(plugin_api_tests.GetPackagePath(), "manual.test_websocket_session", "main.go")
fullPath := filepath.Join(server.GetPackagePath(), "channels", "app", "plugin_api_tests", "manual.test_websocket_session", "main.go")
pluginCode, err := os.ReadFile(fullPath)
require.NoError(t, err)
require.NotEmpty(t, pluginCode)