From b6b44f65f7d8bf2e9589a53ebce60aef63e27048 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Tue, 13 Aug 2019 17:26:02 +0200 Subject: [PATCH] Adder: fix tests rpc mock returned 0 allocations and things started failing. --- test/rpc_api_mock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/rpc_api_mock.go b/test/rpc_api_mock.go index 65674dc6..864c9329 100644 --- a/test/rpc_api_mock.go +++ b/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 }