test/with_api_v2: fix variable shadowing (#1889)

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2019-05-15 10:49:59 +02:00 committed by GitHub
parent 935fb919a8
commit c20873b1fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -357,11 +357,12 @@ func (am *Alertmanager) Start(additionalArg []string) error {
func (am *Alertmanager) WaitForCluster(size int) error {
params := general.NewGetStatusParams()
params.WithContext(context.Background())
var status general.GetStatusOK
var status *general.GetStatusOK
// Poll for 2s
for i := 0; i < 20; i++ {
status, err := am.clientV2.General.GetStatus(params)
var err error
status, err = am.clientV2.General.GetStatus(params)
if err != nil {
return err
}