@@ -194,29 +194,13 @@ var _ = Describe("Peer", func() {
194
194
Eventually (liProcess .Wait (), 10 * time .Second ).Should (Receive (BeNil ()))
195
195
Expect (liRunner ).To (gbytes .Say ("Name: mytest, Version: 1.0," ))
196
196
197
- By ("instantiate channel " )
197
+ By ("instantiate chaincode " )
198
198
instantiateCC := components .Peer ()
199
199
instantiateCC .ConfigDir = tempDir
200
200
instantiateCC .MSPConfigPath = filepath .Join (cryptoDir , "peerOrganizations" , "org1.example.com" , "users" , "Admin@org1.example.com" , "msp" )
201
- instRunner := instantiateCC .InstantiateChaincode ("mytest" , "1.0" , "127.0.0.1:8050" , "mychan" , `{"Args":["init","a","100","b","200"]}` , "" )
202
- instProcess := ifrit .Invoke (instRunner )
203
- Eventually (instProcess .Ready (), 10 * time .Second ).Should (BeClosed ())
204
- Eventually (instProcess .Wait (), 10 * time .Second ).ShouldNot (Receive (BeNil ()))
201
+ instantiateCC .InstantiateChaincode ("mytest" , "1.0" , "127.0.0.1:8050" , "mychan" , `{"Args":["init","a","100","b","200"]}` , "" )
205
202
206
203
By ("list instantiated chaincode" )
207
- listInstantiated := func () * gbytes.Buffer {
208
- listInstan := components .Peer ()
209
- listInstan .ConfigDir = tempDir
210
- listInstan .MSPConfigPath = filepath .Join (cryptoDir , "peerOrganizations" , "org1.example.com" , "users" , "Admin@org1.example.com" , "msp" )
211
- linstRunner := listInstan .ChaincodeListInstantiated ("mychan" )
212
- err := execute (linstRunner )
213
- if err != nil {
214
- return nil
215
- }
216
- return linstRunner .Buffer ()
217
- }
218
- Eventually (listInstantiated , 90 * time .Second , 500 * time .Millisecond ).Should (gbytes .Say ("Name: mytest, Version: 1.0," ))
219
-
220
204
listInstan := components .Peer ()
221
205
listInstan .ConfigDir = tempDir
222
206
listInstan .MSPConfigPath = filepath .Join (cryptoDir , "peerOrganizations" , "org1.example.com" , "users" , "Admin@org1.example.com" , "msp" )
0 commit comments