[MM-34557] commands/server_test: add skip (#17321)

* commands/server_test: disable plugins for test (was causing a data race)

* add skip app init

* skip tests

* add skip linter
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2021-04-01 18:17:33 +03:00
коммит произвёл GitHub
родитель 480796a1df
Коммит 9897d4651a

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

@@ -20,12 +20,14 @@ const (
UnitTestListeningPort = ":0"
)
//nolint:golint,unused
type ServerTestHelper struct {
disableConfigWatch bool
interruptChan chan os.Signal
originalInterval int
}
//nolint:golint,unused
func SetupServerTest(t testing.TB) *ServerTestHelper {
if testing.Short() {
t.SkipNow()
@@ -50,11 +52,13 @@ func SetupServerTest(t testing.TB) *ServerTestHelper {
return th
}
//nolint:golint,unused
func (th *ServerTestHelper) TearDownServerTest() {
jobs.DefaultWatcherPollingInterval = th.originalInterval
}
func TestRunServerSuccess(t *testing.T) {
t.Skip("MM-34557")
th := SetupServerTest(t)
defer th.TearDownServerTest()
@@ -68,6 +72,7 @@ func TestRunServerSuccess(t *testing.T) {
}
func TestRunServerSystemdNotification(t *testing.T) {
t.Skip("MM-34557")
th := SetupServerTest(t)
defer th.TearDownServerTest()
@@ -123,6 +128,7 @@ func TestRunServerSystemdNotification(t *testing.T) {
}
func TestRunServerNoSystemd(t *testing.T) {
t.Skip("MM-34557")
th := SetupServerTest(t)
defer th.TearDownServerTest()