mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #8537 from lorneli/lease_test
lease: test minLeaseTTL limit
This commit is contained in:
commit
510d884e62
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user