From 50699a68013ce9816bc27060aaae35734f06f0dc Mon Sep 17 00:00:00 2001 From: Dave Enyeart Date: Thu, 20 Feb 2025 17:14:35 -0500 Subject: [PATCH] Fix intermittent errors with test-network ca (#1304) 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 --- test-network/network.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test-network/network.sh b/test-network/network.sh index 1afa28a5..91da1d0a 100755 --- a/test-network/network.sh +++ b/test-network/network.sh @@ -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 :