diff options
Diffstat (limited to 'app/cluster_discovery_test.go')
-rw-r--r-- | app/cluster_discovery_test.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/cluster_discovery_test.go b/app/cluster_discovery_test.go new file mode 100644 index 000000000..ca5b1bfa4 --- /dev/null +++ b/app/cluster_discovery_test.go @@ -0,0 +1,27 @@ +// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +package app + +import ( + "testing" + + "time" + + "github.com/mattermost/platform/model" +) + +func TestClusterDiscoveryService(t *testing.T) { + Setup() + + ds := NewClusterDiscoveryService() + ds.Type = model.CDS_TYPE_APP + ds.ClusterName = "ClusterA" + ds.AutoFillHostname() + + ds.Start() + time.Sleep(2 * time.Second) + + ds.Stop() + time.Sleep(2 * time.Second) +} |