summaryrefslogtreecommitdiffstats
path: root/model/cluster_info_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/cluster_info_test.go')
-rw-r--r--model/cluster_info_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/model/cluster_info_test.go b/model/cluster_info_test.go
index d6348f5d1..e7aa9cd16 100644
--- a/model/cluster_info_test.go
+++ b/model/cluster_info_test.go
@@ -16,6 +16,16 @@ func TestClusterInfoJson(t *testing.T) {
if cluster.Id != result.Id {
t.Fatal("Ids do not match")
}
+
+ cluster.SetAlive(true)
+ if !cluster.IsAlive() {
+ t.Fatal("should be live")
+ }
+
+ cluster.SetAlive(false)
+ if cluster.IsAlive() {
+ t.Fatal("should be not live")
+ }
}
func TestClusterInfosJson(t *testing.T) {