logical/framework: allow the lease max to come from existing lease

This commit is contained in:
Armon Dadgar
2015-06-17 14:24:12 -07:00
parent 2a894171ca
commit daf94d6721
3 changed files with 25 additions and 9 deletions

View File

@@ -215,7 +215,7 @@ func TestBackendHandleRequest_renew(t *testing.T) {
func TestBackendHandleRequest_renewExtend(t *testing.T) {
secret := &Secret{
Type: "foo",
Renew: LeaseExtend(0, 0),
Renew: LeaseExtend(0, 0, false),
DefaultDuration: 5 * time.Minute,
}
b := &Backend{