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 <ivan@vald.es>
This commit is contained in:
Ivan Valdes 2024-02-20 09:17:52 -08:00
parent 26620387c7
commit fd228f2c27
No known key found for this signature in database
GPG Key ID: 4037D37741ED0CC5

View File

@ -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
}