Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemadero committed Feb 7, 2025
1 parent f52ee8d commit 6088db6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion pkg/node/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func TrackSubnetWithLocalMachine(
return fmt.Errorf("failed to update sidecar with new node info: %w", err)
}
}
ux.Logger.PrintToUser("Waiting for blockchain %s to be bootstrapped", blockchainName)
ux.Logger.PrintToUser("Waiting for blockchain %s ID %s to be bootstrapped", blockchainName, blockchainID.String())
if err := WaitBootstrapped(ctx, cli, blockchainID.String()); err != nil {
return fmt.Errorf("failure waiting for local cluster %s bootstrapping: %w", blockchainName, err)
}
Expand Down
26 changes: 13 additions & 13 deletions scripts/run.e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ if [ "$current_user" = "runner" ] && [[ "$OSTYPE" == "linux-gnu"* ]]; then
sudo docker system prune -f || echo "failed to cleanup docker"
fi

if [ ! -d "tests/e2e/hardhat/node_modules" ]
then
pushd tests/e2e/hardhat
yarn
popd
fi
#if [ ! -d "tests/e2e/hardhat/node_modules" ]
#then
# pushd tests/e2e/hardhat
# yarn
# popd
#fi

if [ ! -d "tests/e2e/ledgerSim/node_modules" ]
then
pushd tests/e2e/ledgerSim
yarn
cp node_modules/@zondax/zemu/dist/src/grpc/zemu.proto node_modules/@zondax/zemu/dist/grpc/zemu.proto
popd
fi
#if [ ! -d "tests/e2e/ledgerSim/node_modules" ]
#then
# pushd tests/e2e/ledgerSim
# yarn
# cp node_modules/@zondax/zemu/dist/src/grpc/zemu.proto node_modules/@zondax/zemu/dist/grpc/zemu.proto
# popd
#fi

# Set the CGO flags to use the portable version of BLST
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var _ = ginkgo.Describe("[Etna AddRemove Validator SOV PoA]", func() {
gomega.Expect(err).Should(gomega.BeNil())
fmt.Println(output)
// parse blockchainID from output
re := regexp.MustCompile(`Waiting for rpc http://.*?/bc/([A-Za-z0-9]+)/rpc`)
re := regexp.MustCompile(`Waiting for blockchain .* ID ([A-Za-z0-9]+) to be bootstrapped`)
// Find the first match
match := re.FindStringSubmatch(output)
gomega.Expect(match).ToNot(gomega.BeEmpty())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var _ = ginkgo.Describe("[Etna AddRemove Validator SOV PoS]", func() {
gomega.Expect(err).Should(gomega.BeNil())
fmt.Println(output)
// parse blockchainID from output
re := regexp.MustCompile(`Waiting for rpc http://.*?/bc/([A-Za-z0-9]+)/rpc`)
re := regexp.MustCompile(`Waiting for blockchain .* ID ([A-Za-z0-9]+) to be bootstrapped`)
// Find the first match
match := re.FindStringSubmatch(output)
gomega.Expect(match).ToNot(gomega.BeEmpty())
Expand Down

0 comments on commit 6088db6

Please # to comment.