github.com/haalcala/mattermost-server-change-repo/v5@v5.33.2/store/sqlstore/main_test.go (about)

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