tests/framework: add Client.LeaseList

This commit is contained in:
Danielle Lancashire
2022-03-16 15:00:29 +00:00
parent 6b7be72a43
commit 68e6493977
3 changed files with 23 additions and 1 deletions

View File

@ -228,3 +228,9 @@ func (c integrationClient) TimeToLive(id clientv3.LeaseID, o config.LeaseOption)
return c.Client.TimeToLive(ctx, id, leaseOpts...)
}
func (c integrationClient) LeaseList() (*clientv3.LeaseLeasesResponse, error) {
ctx := context.Background()
return c.Client.Leases(ctx)
}