github.com/mad-app/mattermost-server@v5.11.1+incompatible/store/sqlstore/main_test.go (about) 1 // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. 2 // See License.txt for license information. 3 4 package sqlstore_test 5 6 import ( 7 "github.com/mattermost/mattermost-server/store/sqlstore" 8 "testing" 9 10 "github.com/mattermost/mattermost-server/testlib" 11 ) 12 13 var mainHelper *testlib.MainHelper 14 15 func TestMain(m *testing.M) { 16 mainHelper = testlib.NewMainHelperWithOptions(nil) 17 defer mainHelper.Close() 18 19 sqlstore.InitTest() 20 21 mainHelper.Main(m) 22 sqlstore.TearDownTest() 23 }