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:
David Enyeart 2025-02-20 16:41:38 -05:00
parent e1d8779f2a
commit 9ab42e957d

View file

@ -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 :