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 receives an
expected output string as an argument, which wasn't provided in the
first backport implementation.

Original backport of commit 371179e from
PR etcd-io#17398.

Signed-off-by: Ivan Valdes <ivan@vald.es>
  • Loading branch information
ivanvc committed Feb 20, 2024
1 parent 2662038 commit fd228f2
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 fd228f2

Please sign in to comment.