2019-11-29 06:59:40 -05:00
|
|
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
|
|
|
// See LICENSE.txt for license information.
|
2018-12-06 13:19:32 -05:00
|
|
|
|
|
|
|
|
package web
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"testing"
|
|
|
|
|
|
2023-06-11 01:24:35 -04:00
|
|
|
"github.com/mattermost/mattermost/server/v8/channels/testlib"
|
2018-12-06 13:19:32 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var mainHelper *testlib.MainHelper
|
|
|
|
|
|
|
|
|
|
func TestMain(m *testing.M) {
|
2019-02-19 09:20:11 -05:00
|
|
|
var options = testlib.HelperOptions{
|
2019-04-25 09:29:02 -04:00
|
|
|
EnableStore: true,
|
2019-02-19 09:20:11 -05:00
|
|
|
EnableResources: true,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mainHelper = testlib.NewMainHelperWithOptions(&options)
|
2018-12-06 13:19:32 -05:00
|
|
|
defer mainHelper.Close()
|
|
|
|
|
|
|
|
|
|
mainHelper.Main(m)
|
|
|
|
|
}
|