From d703cc275c27b1af2d9da85477c9575b1b940321 Mon Sep 17 00:00:00 2001 From: davidliu Date: Tue, 25 Sep 2018 11:47:35 +0800 Subject: [PATCH] [FABN-874] Part 3, update anchor peers Found a flaw in block validation logic Change-Id: I697073a45278e4134c395bb1dcd80a2f4141cc73 Signed-off-by: davidliu --- test/integration/e2e/updateAnchorPeers.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/integration/e2e/updateAnchorPeers.js b/test/integration/e2e/updateAnchorPeers.js index 4e1b3ccdb7..c0cc48a521 100644 --- a/test/integration/e2e/updateAnchorPeers.js +++ b/test/integration/e2e/updateAnchorPeers.js @@ -95,7 +95,7 @@ test('\n\n***** End-to-end flow: setAnchorPeers *****\n\n', async (t) => { 'ssl-target-name-override': ORGS[org].peer1['server-hostname'] } ); - channel.addPeer(peer,ORGS[org].mspid); + channel.addPeer(peer, ORGS[org].mspid); await channel.initialize(); @@ -107,7 +107,8 @@ test('\n\n***** End-to-end flow: setAnchorPeers *****\n\n', async (t) => { const blockEventPromise = new Promise((resolve, reject) => { const block_registration_number = eventHub.registerBlockEvent((block) => { if (block.data.data.length !== 1) { - reject('Config block must only contain one transaction'); + t.comment('Config block must only contain one transaction'); + return; } const envelope = block.data.data[0]; const channel_header = envelope.payload.header.channel_header;