From d1c39f9313fea9a80ee55c0783d36b99259a3378 Mon Sep 17 00:00:00 2001 From: Matthew Sykes Date: Tue, 19 Jun 2018 16:23:11 -0400 Subject: [PATCH] [FAB-10722] fix data race on MockLedgerInfo Change-Id: I69e9a3cd2c60f4bc616221936067cbcd30433486 Signed-off-by: Matthew Sykes --- core/deliverservice/deliveryclient_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/deliverservice/deliveryclient_test.go b/core/deliverservice/deliveryclient_test.go index 0560a8c661f..ace023a000c 100644 --- a/core/deliverservice/deliveryclient_test.go +++ b/core/deliverservice/deliveryclient_test.go @@ -166,7 +166,7 @@ func TestDeliverServiceRestart(t *testing.T) { os.Shutdown() time.Sleep(time.Second * 3) os = mocks.NewOrderer(5611, t) - li.Height = 103 + atomic.StoreUint64(&li.Height, uint64(103)) os.SetNextExpectedSeek(uint64(103)) go os.SendBlock(uint64(103)) assertBlockDissemination(103, gossipServiceAdapter.GossipBlockDisseminations, t)