Skip to content
Permalink
Browse files

Adder: fix tests

rpc mock returned 0 allocations and things started failing.
  • Loading branch information...
hsanjuan committed Aug 13, 2019
1 parent 111cc29 commit b6b44f65f7d8bf2e9589a53ebce60aef63e27048
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/rpc_api_mock.go
@@ -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
}

0 comments on commit b6b44f6

Please sign in to comment.
You can’t perform that action at this time.