test/with_api_v2: fix variable shadowing (#1889)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
parent
935fb919a8
commit
c20873b1fe
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue