mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration: test sort ASCEND by default in range
This commit is contained in:
parent
4de2128344
commit
f550af7ef4
@ -858,6 +858,12 @@ func TestV3RangeRequest(t *testing.T) {
|
|||||||
SortOrder: pb.RangeRequest_DESCEND,
|
SortOrder: pb.RangeRequest_DESCEND,
|
||||||
SortTarget: pb.RangeRequest_CREATE,
|
SortTarget: pb.RangeRequest_CREATE,
|
||||||
},
|
},
|
||||||
|
{ // sort ASCEND by default
|
||||||
|
Key: []byte("a"), RangeEnd: []byte("z"),
|
||||||
|
Limit: 10,
|
||||||
|
SortOrder: pb.RangeRequest_NONE,
|
||||||
|
SortTarget: pb.RangeRequest_CREATE,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
[][]string{
|
[][]string{
|
||||||
@ -866,8 +872,9 @@ func TestV3RangeRequest(t *testing.T) {
|
|||||||
{"b"},
|
{"b"},
|
||||||
{"c"},
|
{"c"},
|
||||||
{},
|
{},
|
||||||
|
{"b", "a", "c", "d"},
|
||||||
},
|
},
|
||||||
[]bool{true, true, true, true, false},
|
[]bool{true, true, true, true, false, false},
|
||||||
},
|
},
|
||||||
// min/max mod rev
|
// min/max mod rev
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user