Adder: fix tests
rpc mock returned 0 allocations and things started failing.
This commit is contained in:
parent
111cc29fc6
commit
b6b44f65f7
|
@ -313,7 +313,7 @@ func (mock *mockCluster) BlockAllocate(ctx context.Context, in *api.Pin, out *[]
|
|||
if in.ReplicationFactorMin > 1 {
|
||||
return errors.New("replMin too high: can only mock-allocate to 1")
|
||||
}
|
||||
*out = in.Allocations
|
||||
*out = []peer.ID{""} // allocate to local peer
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user