test/integration/acme: fix dropped error

Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
This commit is contained in:
Lars Lehtonen 2021-07-13 04:39:04 -07:00
parent 771c46502a
commit dccda3b321
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2

View File

@ -202,6 +202,9 @@ func TestAcmeOrdersController(t *testing.T) {
var chal *cmacme.Challenge
err = wait.Poll(time.Millisecond*100, time.Minute, func() (done bool, err error) {
chals, err := cmCl.AcmeV1().Challenges(testName).List(ctx, metav1.ListOptions{})
if err != nil {
return false, err
}
l := len(chals.Items)
// Challenge has not been created yet
if l == 0 {