From 4810a2aae7b352559194f6ff19aa908de4df99c2 Mon Sep 17 00:00:00 2001 From: Alessio Attilio Date: Thu, 12 Feb 2026 19:39:23 +0100 Subject: [PATCH] fix: remove duplicate SSH execution in masterExec function --- test/e2e/apimachinery/etcd_failure.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/e2e/apimachinery/etcd_failure.go b/test/e2e/apimachinery/etcd_failure.go index 5d0b39b13cf..8c26abcc9da 100644 --- a/test/e2e/apimachinery/etcd_failure.go +++ b/test/e2e/apimachinery/etcd_failure.go @@ -115,10 +115,6 @@ func masterExec(ctx context.Context, f *framework.Framework, cmd string) { host := ips[0] + ":22" result, err := e2essh.SSH(ctx, cmd, host, framework.TestContext.Provider) - framework.ExpectNoError(err) - e2essh.LogResult(result) - - result, err = e2essh.SSH(ctx, cmd, host, framework.TestContext.Provider) framework.ExpectNoError(err, "failed to SSH to host %s on provider %s and run command: %q", host, framework.TestContext.Provider, cmd) if result.Code != 0 { e2essh.LogResult(result)