Skip to content

Commit 9586323

Browse files
committed
[FAB-3175] Fix Intermittent CI failure deliveryService
This commit attempts to fix an intermittent CI failure that was introduced lately. Change-Id: I364fcabf9afcfa12244bb9ebf0df3e1d8d4f0745 Signed-off-by: Yacov Manevich <[email protected]>
1 parent 56b6d12 commit 9586323

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/deliverservice/deliveryclient_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (*mockMCS) ValidateIdentity(peerIdentity api.PeerIdentityType) error {
7676

7777
func TestNewDeliverService(t *testing.T) {
7878
defer ensureNoGoroutineLeak(t)()
79-
gossipServiceAdapter := &mocks.MockGossipServiceAdapter{GossipBlockDisseminations: make(chan uint64)}
79+
gossipServiceAdapter := &mocks.MockGossipServiceAdapter{GossipBlockDisseminations: make(chan uint64, 1)}
8080
factory := &struct{ mockBlocksDelivererFactory }{}
8181

8282
blocksDeliverer := &mocks.MockBlocksDeliverer{}
@@ -110,7 +110,7 @@ func TestNewDeliverService(t *testing.T) {
110110
assert.Error(t, service.StopDeliverForChannel("TEST_CHAINID2"), "can't stop delivery")
111111

112112
// Let it try to simulate a few recv -> gossip rounds
113-
time.Sleep(time.Duration(10) * time.Millisecond)
113+
time.Sleep(time.Second)
114114
assert.NoError(t, service.StopDeliverForChannel("TEST_CHAINID"))
115115
time.Sleep(time.Duration(10) * time.Millisecond)
116116
// Make sure to stop all blocks providers

0 commit comments

Comments
 (0)