Adder: fix tests

rpc mock returned 0 allocations and things started failing.
This commit is contained in:
Hector Sanjuan 2019-08-13 17:26:02 +02:00
parent 111cc29fc6
commit b6b44f65f7

View File

@ -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
}