Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
Signed-off-by: Smuu <[email protected]>
  • Loading branch information
smuu committed Dec 9, 2024
1 parent 8f22051 commit 29903ae
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/e2e/benchmark/benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (b *BenchmarkTest) SetupNodes() error {
}
}
// obtain the GRPC endpoints of the validators
gRPCEndpoints, err := b.RemoteGRPCEndpoints(ctx)
gRPCEndpoints, err := b.RemoteGRPCEndpoints()
testnet.NoError("failed to get validators GRPC endpoints", err)
log.Println("validators GRPC endpoints", gRPCEndpoints)

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func runTest(logger *log.Logger, test Test) {
if err != nil {
logger.Fatalf("--- ERROR %s: %v", test.Name, err)
}
logger.Println("--- ✅ PASS: %s \n\n", test.Name)
logger.Printf("--- ✅ PASS: %s \n\n", test.Name)
}

func getTestNames(tests []Test) string {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/major_upgrade_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func MajorUpgradeToV2(logger *log.Logger) error {
}

logger.Println("Creating txsim")
endpoints, err := testNet.RemoteGRPCEndpoints(ctx)
endpoints, err := testNet.RemoteGRPCEndpoints()
testnet.NoError("failed to get remote gRPC endpoints", err)
upgradeSchedule := map[int64]uint64{}
err = testNet.CreateTxClient(ctx, "txsim", testnet.TxsimVersion, 1, "100-2000", 100, testnet.DefaultResources, endpoints[0], upgradeSchedule)
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/major_upgrade_v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func MajorUpgradeToV3(logger *log.Logger) error {
}

logger.Println("Creating txsim")
endpoints, err := testNet.RemoteGRPCEndpoints(ctx)
endpoints, err := testNet.RemoteGRPCEndpoints()
testnet.NoError("failed to get remote gRPC endpoints", err)
upgradeSchedule := map[int64]uint64{
upgradeHeightV3: v3.Version,
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/minor_version_compatibility.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func MinorVersionCompatibility(logger *log.Logger) error {
}

logger.Println("Creating txsim")
endpoints, err := testNet.RemoteGRPCEndpoints(ctx)
endpoints, err := testNet.RemoteGRPCEndpoints()
testnet.NoError("failed to get remote gRPC endpoints", err)
upgradeSchedule := map[int64]uint64{}
err = testNet.CreateTxClient(ctx, "txsim", testnet.TxsimVersion, 1, "100-2000", 100, testnet.DefaultResources, endpoints[0], upgradeSchedule)
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func E2ESimple(logger *log.Logger) error {
testNet.CreateGenesisNodes(ctx, 4, latestVersion, 10000000, 0, testnet.DefaultResources, true))

logger.Println("Creating txsim")
endpoints, err := testNet.RemoteGRPCEndpoints(ctx)
endpoints, err := testNet.RemoteGRPCEndpoints()
testnet.NoError("failed to get remote gRPC endpoints", err)
upgradeSchedule := map[int64]uint64{}
err = testNet.CreateTxClient(ctx, "txsim", testnet.TxsimVersion, 10, "100-2000", 100, testnet.DefaultResources, endpoints[0], upgradeSchedule)
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/testnet/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func (t *Testnet) RPCEndpoints() []string {

// RemoteGRPCEndpoints retrieves the gRPC endpoint addresses of the
// testnet's validator nodes.
func (t *Testnet) RemoteGRPCEndpoints(ctx context.Context) ([]string, error) {
func (t *Testnet) RemoteGRPCEndpoints() ([]string, error) {
grpcEndpoints := make([]string, len(t.nodes))
for idx, node := range t.nodes {
grpcEP, err := node.RemoteAddressGRPC()
Expand Down Expand Up @@ -384,7 +384,7 @@ func (t *Testnet) WaitToSync(ctx context.Context) error {
}
t.logger.Println("node status retrieved but not synced yet, waiting...", "name", node.Name, "attempt", i)
} else {
t.logger.Printf("error getting status, retrying...", "name", node.Name, "attempt", i, "error", err)
t.logger.Println("error getting status, retrying...", "name", node.Name, "attempt", i, "error", err)
}
if i == 19 {
return fmt.Errorf("timed out waiting for node %s to sync: %w", node.Name, err)
Expand Down

0 comments on commit 29903ae

Please sign in to comment.