From fd228f2c274be6c2864fd5b3525edb3406d18b02 Mon Sep 17 00:00:00 2001 From: Ivan Valdes Date: Tue, 20 Feb 2024 09:17:52 -0800 Subject: [PATCH] test/e2e: fix WaitLeader backport Fixes the incorrect backport of WaitLeader, as spawnJsonCmd receives an expected output string as an argument, which wasn't provided in the first backport implementation. Original backport of commit 371179e29208f690477c85fc552e7c824a66f87e from PR #17398. 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 d2d356abb..cc5c7a31b 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 }