mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Fix intermittent errors with test-network ca
If CA server hasn't finished initialization then the initial register and enroll requests will fail. Waiting 3 seconds resolves the issue. Signed-off-by: David Enyeart <enyeart@us.ibm.com>
This commit is contained in:
parent
e1d8779f2a
commit
9ab42e957d
1 changed files with 2 additions and 0 deletions
|
|
@ -224,6 +224,8 @@ function createOrgs() {
|
|||
infoln "Generating certificates using Fabric CA"
|
||||
${CONTAINER_CLI_COMPOSE} -f compose/$COMPOSE_FILE_CA -f compose/$CONTAINER_CLI/${CONTAINER_CLI}-$COMPOSE_FILE_CA up -d 2>&1
|
||||
|
||||
# Allow CAs to initialize and then make register and enroll requests
|
||||
sleep 3
|
||||
. organizations/fabric-ca/registerEnroll.sh
|
||||
|
||||
while :
|
||||
|
|
|
|||
Loading…
Reference in a new issue