(n *nwo.Network, peer *nwo.Peer, command commands.ChaincodeInvoke)
| 173 | } |
| 174 | |
| 175 | func invokeChaincode(n *nwo.Network, peer *nwo.Peer, command commands.ChaincodeInvoke) { |
| 176 | sess, err := n.PeerUserSession(peer, "User1", command) |
| 177 | Expect(err).NotTo(HaveOccurred()) |
| 178 | Eventually(sess, n.EventuallyTimeout).Should(gexec.Exit(0)) |
| 179 | Expect(sess.Err).To(gbytes.Say("Chaincode invoke successful.")) |
| 180 | } |
| 181 | |
| 182 | func queryChaincode(n *nwo.Network, peer *nwo.Peer, command commands.ChaincodeQuery, expectedMessage string, expectSuccess bool) { |
| 183 | sess, err := n.PeerUserSession(peer, "User1", command) |
no test coverage detected