Skip to content

Commit

Permalink
[FAB-10506] change endoremsent policy for e2e
Browse files Browse the repository at this point in the history
Change-Id: If96aeea923fbabb8c7a8c9b9eec665852ffda3a6
Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
  • Loading branch information
sykesm committed Jun 1, 2018
1 parent aa8875d commit ad8f4c4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions integration/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var _ = Describe("EndToEnd", func() {
ExecPath: os.Getenv("PATH"),
},
InitArgs: `{"Args":["init","a","100","b","200"]}`,
Policy: `OR ('Org1MSP.member','Org2MSP.member')`,
Policy: `AND ('Org1MSP.member','Org2MSP.member')`,
Orderer: "127.0.0.1:7050",
}
})
Expand Down Expand Up @@ -79,7 +79,7 @@ var _ = Describe("EndToEnd", func() {
w.BuildNetwork()

By("setting up the channel")
w.SetupChannel(deployment, []string{"peer0.org1.example.com", "peer0.org2.example.com"})
w.SetupChannel(deployment, w.PeerIDs())

RunQueryInvokeQuery(w, deployment)
})
Expand Down Expand Up @@ -108,7 +108,15 @@ func RunQueryInvokeQuery(w *world.World, deployment world.Deployment) {
Eventually(adminRunner.Buffer()).Should(gbytes.Say("100"))

By("invoking the chaincode")
adminRunner = adminPeer.InvokeChaincode(deployment.Chaincode.Name, deployment.Channel, `{"Args":["invoke","a","b","10"]}`, deployment.Orderer, "--waitForEvent")
adminRunner = adminPeer.InvokeChaincode(
deployment.Chaincode.Name,
deployment.Channel,
`{"Args":["invoke","a","b","10"]}`,
deployment.Orderer,
"--waitForEvent",
"--peerAddresses", "127.0.0.1:7051",
"--peerAddresses", "127.0.0.1:8051",
)
execute(adminRunner)
Eventually(adminRunner.Err()).Should(gbytes.Say("Chaincode invoke successful. result: status:200"))

Expand Down

0 comments on commit ad8f4c4

Please sign in to comment.