Skip to content

Commit

Permalink
test/e2e: fix WaitLeader backport
Browse files Browse the repository at this point in the history
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 371179e from
PR etcd-io#14752.

Signed-off-by: Ivan Valdes <[email protected]>
  • Loading branch information
ivanvc committed Feb 20, 2024
1 parent f1b24ec commit 3ea12c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/etcdctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3ea12c3

Please sign in to comment.