@@ -22,7 +22,7 @@ import (
2222)
2323
2424// ContentSuite runs a test suite on the content store given a factory function.
25- func ContentSuite (t * testing.T , name string , storeFn func (ctx context.Context , root string ) (content.Store , func () error , error )) {
25+ func ContentSuite (t * testing.T , name string , storeFn func (ctx context.Context , root string ) (context. Context , content.Store , func () error , error )) {
2626 t .Run ("Writer" , makeTest (t , name , storeFn , checkContentStoreWriter ))
2727 t .Run ("UploadStatus" , makeTest (t , name , storeFn , checkUploadStatus ))
2828 t .Run ("Resume" , makeTest (t , name , storeFn , checkResumeWriter ))
@@ -34,7 +34,7 @@ func ContentSuite(t *testing.T, name string, storeFn func(ctx context.Context, r
3434 t .Run ("Labels" , makeTest (t , name , storeFn , checkLabels ))
3535}
3636
37- func makeTest (t * testing.T , name string , storeFn func (ctx context.Context , root string ) (content.Store , func () error , error ), fn func (ctx context.Context , t * testing.T , cs content.Store )) func (t * testing.T ) {
37+ func makeTest (t * testing.T , name string , storeFn func (ctx context.Context , root string ) (context. Context , content.Store , func () error , error ), fn func (ctx context.Context , t * testing.T , cs content.Store )) func (t * testing.T ) {
3838 return func (t * testing.T ) {
3939 ctx := namespaces .WithNamespace (context .Background (), name )
4040
@@ -44,7 +44,7 @@ func makeTest(t *testing.T, name string, storeFn func(ctx context.Context, root
4444 }
4545 defer os .RemoveAll (tmpDir )
4646
47- cs , cleanup , err := storeFn (ctx , tmpDir )
47+ ctx , cs , cleanup , err := storeFn (ctx , tmpDir )
4848 if err != nil {
4949 t .Fatal (err )
5050 }
0 commit comments