mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration: test MinModRev/MaxModRev
This commit is contained in:
parent
b0481ba858
commit
17e7f83212
@ -865,6 +865,37 @@ func TestV3RangeRequest(t *testing.T) {
|
||||
},
|
||||
[]bool{true, true, true, true, false},
|
||||
},
|
||||
// min/max mod rev
|
||||
{
|
||||
[]string{"rev2", "rev3", "rev4", "rev5", "rev6"},
|
||||
[]pb.RangeRequest{
|
||||
{
|
||||
Key: []byte{0}, RangeEnd: []byte{0},
|
||||
MinModRevision: 3,
|
||||
},
|
||||
{
|
||||
Key: []byte{0}, RangeEnd: []byte{0},
|
||||
MaxModRevision: 3,
|
||||
},
|
||||
{
|
||||
Key: []byte{0}, RangeEnd: []byte{0},
|
||||
MinModRevision: 3,
|
||||
MaxModRevision: 5,
|
||||
},
|
||||
{
|
||||
Key: []byte{0}, RangeEnd: []byte{0},
|
||||
MaxModRevision: 10,
|
||||
},
|
||||
},
|
||||
|
||||
[][]string{
|
||||
{"rev3", "rev4", "rev5", "rev6"},
|
||||
{"rev2", "rev3"},
|
||||
{"rev3", "rev4", "rev5"},
|
||||
{"rev2", "rev3", "rev4", "rev5", "rev6"},
|
||||
},
|
||||
[]bool{false, false, false, false},
|
||||
},
|
||||
}
|
||||
|
||||
for i, tt := range tests {
|
||||
|
Loading…
x
Reference in New Issue
Block a user