From ea1bd956c57f23b4ac5feb0b24ea79bbbe3b31ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Thu, 24 Oct 2024 22:25:37 +0200 Subject: [PATCH] use require MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché --- staging/src/k8s.io/apiserver/pkg/cel/types_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/staging/src/k8s.io/apiserver/pkg/cel/types_test.go b/staging/src/k8s.io/apiserver/pkg/cel/types_test.go index b08e11849e0..f7056fa0d92 100644 --- a/staging/src/k8s.io/apiserver/pkg/cel/types_test.go +++ b/staging/src/k8s.io/apiserver/pkg/cel/types_test.go @@ -20,7 +20,7 @@ import ( "testing" "github.com/google/cel-go/common/types" - "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestTypes_ListType(t *testing.T) { @@ -88,8 +88,8 @@ func TestDeclTypeProvider_FindStructType(t *testing.T) { base := types.NewEmptyRegistry() provider := NewDeclTypeProvider(obj) provider, err := provider.WithTypeProvider(base) - assert.NoError(t, err) + require.NoError(t, err) wrappedType, found := provider.FindStructType("foo") - assert.True(t, found) - assert.Equal(t, types.TypeKind, wrappedType.Kind()) + require.True(t, found) + require.Equal(t, types.TypeKind, wrappedType.Kind()) }