Skip to content

Commit

Permalink
[FAB-6762] Update endorser test cc startup timeout
Browse files Browse the repository at this point in the history
This CR updates the chaincode startup timeout value to a larger value
to avoid timeout failures. It also updates a chaincode test timeout
value to keep tests that create and deploy docker images consistent.

Change-Id: If4b62f9b700ea79e480fc234a2e047bee63313f2
Signed-off-by: Will Lahti <[email protected]>
  • Loading branch information
wlahti committed Oct 26, 2017
1 parent aa69bc7 commit 117cf98
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/chaincode/exectransaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func initPeer(chainIDs ...string) (net.Listener, error) {
return &pb.PeerEndpoint{Id: &pb.PeerID{Name: "testpeer"}, Address: peerAddress}, nil
}

ccStartupTimeout := time.Duration(60) * time.Second
ccStartupTimeout := time.Duration(3) * time.Minute
ca, _ := accesscontrol.NewCA()
pb.RegisterChaincodeSupportServer(grpcServer, NewChaincodeSupport(getPeerEndpoint, false, ccStartupTimeout, ca))

Expand Down
2 changes: 1 addition & 1 deletion core/endorser/endorser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func initPeer(chainID string) (*testEnvironment, error) {
return &pb.PeerEndpoint{Id: &pb.PeerID{Name: "testpeer"}, Address: peerAddress}, nil
}

ccStartupTimeout := time.Duration(30000) * time.Millisecond
ccStartupTimeout := time.Duration(3) * time.Minute
ca, _ := accesscontrol.NewCA()
pb.RegisterChaincodeSupportServer(grpcServer, chaincode.NewChaincodeSupport(getPeerEndpoint, false, ccStartupTimeout, ca))

Expand Down
2 changes: 1 addition & 1 deletion core/endorser/endorser_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ chaincode:
# timeout in millisecs for starting up a container and waiting for Register
# to come through. 1sec should be plenty for chaincode unit tests
startuptimeout: 300000
startuptimeout: 1800000

#timeout in millisecs for deploying chaincode from a remote repository.
deploytimeout: 30000
Expand Down

0 comments on commit 117cf98

Please sign in to comment.