Skip to content

Commit f84722b

Browse files
Update test/e2e/crds/v2/tls.go
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent ed4d2b5 commit f84722b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/e2e/crds/v2/tls.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ spec:
239239
if s.Deployer.Name() == framework.ProviderTypeAPI7EE {
240240
depth = int64(10) // API7EE control plane currently defaults to depth 10 for mTLS
241241
}
242-
assert.Equal(GinkgoT(), depth, *tls[0].Client.Depth, "client depth should be 1")
242+
assert.NotNil(GinkgoT(), tls[0].Client.Depth, "client depth should be set")
243+
assert.Equal(GinkgoT(), depth, *tls[0].Client.Depth, fmt.Sprintf("client depth should be %d", depth))
243244
})
244245
It("ApisixTls with skip_mtls_uri_regex test", func() {
245246
// TODO: Add support for skip_mtls_uri_regex in API7EE control plane

0 commit comments

Comments
 (0)