Skip to content

Commit

Permalink
Merge pull request #8537 from lorneli/lease_test
Browse files Browse the repository at this point in the history
lease: test minLeaseTTL limit
  • Loading branch information
xiang90 committed Sep 12, 2017
2 parents 6f62790 + 28a2207 commit 510d884
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lease/lessor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ func TestLessorGrant(t *testing.T) {
if err != nil {
t.Fatalf("could not grant lease 1 (%v)", err)
}
if l.ttl != minLeaseTTL {
t.Fatalf("ttl = %v, expect minLeaseTTL %v", l.ttl, minLeaseTTL)
}

gl := le.Lookup(l.ID)

if !reflect.DeepEqual(gl, l) {
Expand Down

0 comments on commit 510d884

Please sign in to comment.