From 3ea12c30319750b4fbadee8673a9c9ebc4e5bfe8 Mon Sep 17 00:00:00 2001 From: Ivan Valdes Date: Mon, 19 Feb 2024 17:24:16 -0800 Subject: [PATCH] test/e2e: fix WaitLeader backport Fixes the incorrect backport of WaitLeader, as spawnJsonCmd expects an expected output string as argument, which wasn't provided in the first backport implementation. Original backport of commit 371179e29208f690477c85fc552e7c824a66f87e from PR #14752. Signed-off-by: Ivan Valdes --- tests/e2e/etcdctl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/etcdctl.go b/tests/e2e/etcdctl.go index d2d356abbfa4..cc5c7a31b6d4 100644 --- a/tests/e2e/etcdctl.go +++ b/tests/e2e/etcdctl.go @@ -146,7 +146,7 @@ func (ctl *Etcdctl) Status() ([]*clientv3.StatusResponse, error) { Endpoint string Status *clientv3.StatusResponse } - err := ctl.spawnJsonCmd(&epStatus, "endpoint", "status") + err := ctl.spawnJsonCmd(&epStatus, "", "endpoint", "status") if err != nil { return nil, err }