Renamed/moved the self data center setting #23312 (#23344)

This commit is contained in:
Johan Andrén 2017-07-12 11:47:32 +01:00 committed by GitHub
parent be5a0207bb
commit 9c7e8d027a
16 changed files with 48 additions and 46 deletions

View file

@ -306,7 +306,7 @@ trait MultiNodeClusterSpec extends Suite with STMultiNodeSpec with WatchedByCoro
awaitAssert(clusterView.members.map(_.status) should ===(Set(MemberStatus.Up)))
// clusterView.leader is updated by LeaderChanged, await that to be updated also
val expectedLeader = clusterView.members.collectFirst {
case m if m.dataCenter == cluster.settings.DataCenter m.address
case m if m.dataCenter == cluster.settings.SelfDataCenter m.address
}
awaitAssert(clusterView.leader should ===(expectedLeader))
}