integration: use variadic parameters for *Partition
'member' type is not exported. In network partition tests, we want do InjectPartition(t, clus.Members[lead], clus.Members[lead+1]) Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
@ -149,12 +149,12 @@ func getMembersByIndexSlice(clus *cluster, idxs []int) []*member {
|
||||
|
||||
func injectPartition(t *testing.T, src, others []*member) {
|
||||
for _, m := range src {
|
||||
m.InjectPartition(t, others)
|
||||
m.InjectPartition(t, others...)
|
||||
}
|
||||
}
|
||||
|
||||
func recoverPartition(t *testing.T, src, others []*member) {
|
||||
for _, m := range src {
|
||||
m.RecoverPartition(t, others)
|
||||
m.RecoverPartition(t, others...)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user