From f550af7ef4664bee068cefea12b882cffc4dd45b Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Tue, 18 Oct 2016 16:50:30 -0700 Subject: [PATCH] integration: test sort ASCEND by default in range --- integration/v3_grpc_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/integration/v3_grpc_test.go b/integration/v3_grpc_test.go index 24c198b8d..36c9a9ffd 100644 --- a/integration/v3_grpc_test.go +++ b/integration/v3_grpc_test.go @@ -858,6 +858,12 @@ func TestV3RangeRequest(t *testing.T) { SortOrder: pb.RangeRequest_DESCEND, 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{ @@ -866,8 +872,9 @@ func TestV3RangeRequest(t *testing.T) { {"b"}, {"c"}, {}, + {"b", "a", "c", "d"}, }, - []bool{true, true, true, true, false}, + []bool{true, true, true, true, false, false}, }, // min/max mod rev {