Merge pull request #410 from RichardScothern/driver-context
Add golang/x/net/context.Context to storage driver method calls
This commit is contained in:
commit
dd58ffe6ed
31 changed files with 386 additions and 345 deletions
|
@ -17,11 +17,12 @@ import (
|
|||
)
|
||||
|
||||
func TestListener(t *testing.T) {
|
||||
registry := storage.NewRegistryWithDriver(inmemory.New(), cache.NewInMemoryLayerInfoCache())
|
||||
ctx := context.Background()
|
||||
registry := storage.NewRegistryWithDriver(ctx, inmemory.New(), cache.NewInMemoryLayerInfoCache())
|
||||
tl := &testListener{
|
||||
ops: make(map[string]int),
|
||||
}
|
||||
ctx := context.Background()
|
||||
|
||||
repository, err := registry.Repository(ctx, "foo/bar")
|
||||
if err != nil {
|
||||
t.Fatalf("unexpected error getting repo: %v", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue