content/testsuite: pass context to hold lease

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day
2018-01-29 16:24:33 -08:00
parent c517a005b5
commit 3295bca5bf
4 changed files with 18 additions and 14 deletions

View File

@@ -72,12 +72,12 @@ func (mls *memoryLabelStore) Update(d digest.Digest, update map[string]string) (
}
func TestContent(t *testing.T) {
testsuite.ContentSuite(t, "fs", func(ctx context.Context, root string) (content.Store, func() error, error) {
testsuite.ContentSuite(t, "fs", func(ctx context.Context, root string) (context.Context, content.Store, func() error, error) {
cs, err := NewLabeledStore(root, newMemoryLabelStore())
if err != nil {
return nil, nil, err
return nil, nil, nil, err
}
return cs, func() error {
return ctx, cs, func() error {
return nil
}, nil
})