summaryrefslogtreecommitdiffstats
path: root/cmd/mattermost/commands/server_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/mattermost/commands/server_test.go')
-rw-r--r--cmd/mattermost/commands/server_test.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/cmd/mattermost/commands/server_test.go b/cmd/mattermost/commands/server_test.go
index a0c7c6948..0f825e316 100644
--- a/cmd/mattermost/commands/server_test.go
+++ b/cmd/mattermost/commands/server_test.go
@@ -11,7 +11,6 @@ import (
"testing"
"github.com/mattermost/mattermost-server/jobs"
- "github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
"github.com/stretchr/testify/require"
)
@@ -21,7 +20,6 @@ type ServerTestHelper struct {
disableConfigWatch bool
interruptChan chan os.Signal
originalInterval int
- oldBuildNumber string
}
func SetupServerTest() *ServerTestHelper {
@@ -43,20 +41,14 @@ func SetupServerTest() *ServerTestHelper {
interruptChan: interruptChan,
originalInterval: originalInterval,
}
-
- // Run in dev mode so SiteURL gets set
- th.oldBuildNumber = model.BuildNumber
- model.BuildNumber = "dev"
-
return th
}
func (th *ServerTestHelper) TearDownServerTest() {
jobs.DEFAULT_WATCHER_POLLING_INTERVAL = th.originalInterval
- model.BuildNumber = th.oldBuildNumber
}
-func TestRunServerSiteURL(t *testing.T) {
+func TestRunServerSuccess(t *testing.T) {
th := SetupServerTest()
defer th.TearDownServerTest()