From 29903aefe63da99da418ba0aa2d0afa03b3c68bd Mon Sep 17 00:00:00 2001 From: Smuu <18609909+Smuu@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:14:33 +0100 Subject: [PATCH] fix: linter Signed-off-by: Smuu <18609909+Smuu@users.noreply.github.com> --- test/e2e/benchmark/benchmark.go | 2 +- test/e2e/main.go | 2 +- test/e2e/major_upgrade_v2.go | 2 +- test/e2e/major_upgrade_v3.go | 2 +- test/e2e/minor_version_compatibility.go | 2 +- test/e2e/simple.go | 2 +- test/e2e/testnet/testnet.go | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/e2e/benchmark/benchmark.go b/test/e2e/benchmark/benchmark.go index 7433846fd7..95e713bd69 100644 --- a/test/e2e/benchmark/benchmark.go +++ b/test/e2e/benchmark/benchmark.go @@ -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) diff --git a/test/e2e/main.go b/test/e2e/main.go index fda37934e2..768907e2cf 100644 --- a/test/e2e/main.go +++ b/test/e2e/main.go @@ -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 { diff --git a/test/e2e/major_upgrade_v2.go b/test/e2e/major_upgrade_v2.go index 124089f7b5..03383124ae 100644 --- a/test/e2e/major_upgrade_v2.go +++ b/test/e2e/major_upgrade_v2.go @@ -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) diff --git a/test/e2e/major_upgrade_v3.go b/test/e2e/major_upgrade_v3.go index 33c145248b..910022a22b 100644 --- a/test/e2e/major_upgrade_v3.go +++ b/test/e2e/major_upgrade_v3.go @@ -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, diff --git a/test/e2e/minor_version_compatibility.go b/test/e2e/minor_version_compatibility.go index b4df163317..ab9b0580e4 100644 --- a/test/e2e/minor_version_compatibility.go +++ b/test/e2e/minor_version_compatibility.go @@ -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) diff --git a/test/e2e/simple.go b/test/e2e/simple.go index c431f993ad..50a0faab46 100644 --- a/test/e2e/simple.go +++ b/test/e2e/simple.go @@ -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) diff --git a/test/e2e/testnet/testnet.go b/test/e2e/testnet/testnet.go index ee3af2e98f..429547e902 100644 --- a/test/e2e/testnet/testnet.go +++ b/test/e2e/testnet/testnet.go @@ -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() @@ -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)