Skip to content

Commit 152cff9

Browse files
committed
test: info log on teardown error
1 parent a8088d4 commit 152cff9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/e2e/helper_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"testing"
1515
"time"
1616

17-
"github.com/stretchr/testify/require"
1817
hrobot "github.com/syself/hrobot-go"
1918
corev1 "k8s.io/api/core/v1"
2019
k8serrors "k8s.io/apimachinery/pkg/api/errors"
@@ -331,7 +330,8 @@ func (l *lbTestHelper) TearDown() {
331330
}
332331
return k8serrors.IsNotFound(err), nil
333332
})
334-
require.NoError(l.t, err)
333+
// The cluster is deleted afterward, so we can info log this error
334+
l.t.Logf("error tearing down test namespace: %w", err)
335335
}
336336

337337
// WaitForHTTPAvailable tries to connect to the given IP via HTTP or HTTPS

0 commit comments

Comments
 (0)