Skip to content

Commit

Permalink
[FAB-10529] Removes update call from QueryInvoke func
Browse files Browse the repository at this point in the history
An update channel call was being performed with each
QueryInvoke when using the RunQueryInvokeQuery func.
This CR fixes that error.

Change-Id: I9d2a9b0228bafcdc20cb9de43831ce5d75bdbd4d
Signed-off-by: Latitia M Haskins <[email protected]>
  • Loading branch information
lhaskins committed Jun 4, 2018
1 parent 78ae92c commit 8d2f2bb
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions integration/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,6 @@ func RunQueryInvokeQuery(w *world.World, deployment world.Deployment) {
adminRunner = adminPeer.QueryChaincode(deployment.Chaincode.Name, deployment.Channel, `{"Args":["query","a"]}`)
execute(adminRunner)
Eventually(adminRunner.Buffer()).Should(gbytes.Say("90"))

By("updating the channel")
adminPeer = components.Peer()
adminPeer.ConfigDir = filepath.Join(w.Rootpath, "peer0.org1.example.com")
adminPeer.MSPConfigPath = filepath.Join(w.Rootpath, "crypto", "peerOrganizations", "org1.example.com", "users", "[email protected]", "msp")
adminRunner = adminPeer.UpdateChannel(filepath.Join(w.Rootpath, "Org1_anchors_update_tx.pb"), deployment.Channel, deployment.Orderer)
execute(adminRunner)
Eventually(adminRunner.Err()).Should(gbytes.Say("Successfully submitted channel update"))
}

func execute(r ifrit.Runner) (err error) {
Expand Down

0 comments on commit 8d2f2bb

Please sign in to comment.