Unverified Commit 4e612182 authored by Jay Guo's avatar Jay Guo Committed by Artem Barger
Browse files

[FAB-14179] Perform checks of instantiation in test

`checkPeers` should be supplied to `nwo.InstantiateChaincode`
if called separately, so that checks are performed to ensure
the instantiation. Otherwise, an immediate query/invoke following
this would fail, because that deploy tx may not be committed yet.

Change-Id: I8e870b183c279aca53961745031fdee7085efe18
Signed-off-by: default avatarJay Guo <guojiannan1101@gmail.com>
parent fb59b1bb
......@@ -303,10 +303,10 @@ var _ = Describe("EndToEnd", func() {
nwo.DeployChaincode(network, "testchannel1", orderer, chaincode)
network.CreateAndJoinChannel(orderer, "testchannel2")
nwo.InstantiateChaincode(network, "testchannel2", orderer, chaincode, peer)
nwo.InstantiateChaincode(network, "testchannel2", orderer, chaincode, peer, network.PeersWithChannel("testchannel2")...)
RunQueryInvokeQuery(network, orderer, peer, "testchannel1")
RunQueryInvokeQuery(network, orderer, peer, "testchannel2")
RunQueryInvokeQuery(network, orderer, peer, "testchannel1")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment