Fix CheckRestore function in e2e-tests
Add missing return statement if restore error has been found.
Without a return statement restore is not recognized as a failure until
it times out (by default 25 minutes).
@@ -223,7 +223,7 @@ func (c *Ctl) CheckRestore(bcpName string, waitFor time.Duration) error {
case pbm.StatusDone:
return nil
case pbm.StatusError:
- errors.Errorf("failed with %s", r.Error)
+ return errors.Errorf("failed with %s", r.Error)
}
}
}
