Skip to content

Commit

Permalink
Amend sentinel test KeeperSpec to KeeperStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
rnaveiras committed Sep 3, 2019
1 parent 476f3a1 commit b69302e
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions cmd/sentinel/cmd/sentinel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4993,13 +4993,12 @@ func TestUpdateCluster(t *testing.T) {
},
},
"keeper2": &cluster.Keeper{
UID: "keeper2",
Spec: &cluster.KeeperSpec{
NeverSynchronousReplica: true,
},
UID: "keeper2",
Spec: &cluster.KeeperSpec{},
Status: cluster.KeeperStatus{
Healthy: true,
LastHealthyTime: now,
Healthy: true,
LastHealthyTime: now,
NeverSynchronousReplica: true,
},
},
},
Expand Down Expand Up @@ -5088,13 +5087,12 @@ func TestUpdateCluster(t *testing.T) {
},
},
"keeper2": &cluster.Keeper{
UID: "keeper2",
Spec: &cluster.KeeperSpec{
NeverSynchronousReplica: true,
},
UID: "keeper2",
Spec: &cluster.KeeperSpec{},
Status: cluster.KeeperStatus{
Healthy: true,
LastHealthyTime: now,
Healthy: true,
LastHealthyTime: now,
NeverSynchronousReplica: true,
},
},
},
Expand Down Expand Up @@ -5189,13 +5187,12 @@ func TestUpdateCluster(t *testing.T) {
},
},
"keeper2": &cluster.Keeper{
UID: "keeper2",
Spec: &cluster.KeeperSpec{
NeverMaster: true,
},
UID: "keeper2",
Spec: &cluster.KeeperSpec{},
Status: cluster.KeeperStatus{
Healthy: true,
LastHealthyTime: now,
NeverMaster: true,
},
},
},
Expand Down Expand Up @@ -5284,13 +5281,12 @@ func TestUpdateCluster(t *testing.T) {
},
},
"keeper2": &cluster.Keeper{
UID: "keeper2",
Spec: &cluster.KeeperSpec{
NeverMaster: true,
},
UID: "keeper2",
Spec: &cluster.KeeperSpec{},
Status: cluster.KeeperStatus{
Healthy: true,
LastHealthyTime: now,
NeverMaster: true,
},
},
},
Expand Down

0 comments on commit b69302e

Please sign in to comment.