Skip to content

Commit

Permalink
integration: test MinModRev/MaxModRev
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Romano committed Sep 13, 2016
1 parent b0481ba commit 17e7f83
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions integration/v3_grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 17e7f83

Please sign in to comment.