@@ -229,13 +229,13 @@ func createChannel(org1AdminUser msp.SigningIdentity, org2AdminUser msp.SigningI
229229
230230func testCCPolicy (chClientOrg2User * channel.Client , t * testing.T ) {
231231 _ , err := chClientOrg2User .Execute (channel.Request {ChaincodeID : "exampleCC" , Fcn : "invoke" , Args : integration .ExampleCCTxArgs ()}, channel .WithTargets (orgTestPeer1 ),
232- channel .WithRetry (retry .DefaultChClientOpts ))
232+ channel .WithRetry (retry .DefaultChannelOpts ))
233233 if err == nil {
234234 t .Fatalf ("Should have failed to move funds due to cc policy" )
235235 }
236236 // Org2 user moves funds (cc policy ok since we have provided peers for both Orgs)
237237 _ , err = chClientOrg2User .Execute (channel.Request {ChaincodeID : "exampleCC" , Fcn : "invoke" , Args : integration .ExampleCCTxArgs ()}, channel .WithTargets (orgTestPeer0 , orgTestPeer1 ),
238- channel .WithRetry (retry .DefaultChClientOpts ))
238+ channel .WithRetry (retry .DefaultChannelOpts ))
239239 if err != nil {
240240 t .Fatalf ("Failed to move funds: %s" , err )
241241 }
@@ -266,7 +266,7 @@ func upgradeCC(ccPkg *api.CCPackage, org1ResMgmt *resmgmt.Client, t *testing.T,
266266
267267func moveFunds (chClientOrgUser * channel.Client , t * testing.T ) fab.TransactionID {
268268 response , err := chClientOrgUser .Execute (channel.Request {ChaincodeID : "exampleCC" , Fcn : "invoke" , Args : integration .ExampleCCTxArgs ()}, channel .WithTargets (orgTestPeer1 ),
269- channel .WithRetry (retry .DefaultChClientOpts ))
269+ channel .WithRetry (retry .DefaultChannelOpts ))
270270 if err != nil {
271271 t .Fatalf ("Failed to move funds: %s" , err )
272272 }
@@ -308,7 +308,7 @@ func getBlockchainInfo(ledgerClient *ledger.Client, t *testing.T) *fab.Blockchai
308308
309309func queryCC (chClientOrg1User * channel.Client , t * testing.T ) []byte {
310310 response , err := chClientOrg1User .Query (channel.Request {ChaincodeID : "exampleCC" , Fcn : "invoke" , Args : integration .ExampleCCQueryArgs ()},
311- channel .WithRetry (retry .DefaultChClientOpts ))
311+ channel .WithRetry (retry .DefaultChannelOpts ))
312312 if err != nil {
313313 t .Fatalf ("Failed to query funds: %s" , err )
314314 }
@@ -323,7 +323,7 @@ func queryCC(chClientOrg1User *channel.Client, t *testing.T) []byte {
323323
324324func verifyErrorFromCC (chClientOrg1User * channel.Client , t * testing.T ) {
325325 _ , err := chClientOrg1User .Query (channel.Request {ChaincodeID : "exampleCC" , Fcn : "DUMMY_FUNCTION" , Args : integration .ExampleCCQueryArgs ()},
326- channel .WithRetry (retry .DefaultChClientOpts ))
326+ channel .WithRetry (retry .DefaultChannelOpts ))
327327 require .Error (t , err , "Should have failed with dummy function" )
328328 s , ok := status .FromError (err )
329329 require .True (t , ok , "expected status error" )
@@ -396,7 +396,7 @@ func testWithOrg2(t *testing.T, expectedValue int) int {
396396
397397 // Org2 user moves funds (dynamic selection will inspect chaincode policy to determine endorsers)
398398 _ , err = chClientOrg2User .Execute (channel.Request {ChaincodeID : "exampleCC" , Fcn : "invoke" , Args : integration .ExampleCCTxArgs ()},
399- channel .WithRetry (retry .DefaultChClientOpts ))
399+ channel .WithRetry (retry .DefaultChannelOpts ))
400400 if err != nil {
401401 t .Fatalf ("Failed to move funds: %s" , err )
402402 }
@@ -425,7 +425,7 @@ func verifyValue(t *testing.T, chClient *channel.Client, expected int) {
425425 for i := 0 ; i < pollRetries ; i ++ {
426426 // Query final value on org1 peer
427427 response , err := chClient .Query (channel.Request {ChaincodeID : "exampleCC" , Fcn : "invoke" , Args : integration .ExampleCCQueryArgs ()}, channel .WithTargets (orgTestPeer0 ),
428- channel .WithRetry (retry .DefaultChClientOpts ))
428+ channel .WithRetry (retry .DefaultChannelOpts ))
429429 if err != nil {
430430 t .Fatalf ("Failed to query funds after transaction: %s" , err )
431431 }
0 commit comments