make Lookup() return all blobs
+ simplify syntax
This commit is contained in:
parent
020cab8e08
commit
9d1fb94c6c
13 changed files with 134 additions and 72 deletions
|
@ -40,7 +40,7 @@ func TestBlobSaver(t *testing.T) {
|
|||
|
||||
tmb, ctx := tomb.WithContext(ctx)
|
||||
saver := &saveFail{
|
||||
idx: repository.NewIndex(),
|
||||
idx: repository.NewMasterIndex(),
|
||||
}
|
||||
|
||||
b := NewBlobSaver(ctx, tmb, saver, uint(runtime.NumCPU()))
|
||||
|
@ -86,7 +86,7 @@ func TestBlobSaverError(t *testing.T) {
|
|||
|
||||
tmb, ctx := tomb.WithContext(ctx)
|
||||
saver := &saveFail{
|
||||
idx: repository.NewIndex(),
|
||||
idx: repository.NewMasterIndex(),
|
||||
failAt: int32(test.failAt),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue