Skip to content

Commit ea1bd95

Browse files
committed
use require
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
1 parent 0d82536 commit ea1bd95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

staging/src/k8s.io/apiserver/pkg/cel/types_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"testing"
2121

2222
"github.com/google/cel-go/common/types"
23-
"github.com/stretchr/testify/assert"
23+
"github.com/stretchr/testify/require"
2424
)
2525

2626
func TestTypes_ListType(t *testing.T) {
@@ -88,8 +88,8 @@ func TestDeclTypeProvider_FindStructType(t *testing.T) {
8888
base := types.NewEmptyRegistry()
8989
provider := NewDeclTypeProvider(obj)
9090
provider, err := provider.WithTypeProvider(base)
91-
assert.NoError(t, err)
91+
require.NoError(t, err)
9292
wrappedType, found := provider.FindStructType("foo")
93-
assert.True(t, found)
94-
assert.Equal(t, types.TypeKind, wrappedType.Kind())
93+
require.True(t, found)
94+
require.Equal(t, types.TypeKind, wrappedType.Kind())
9595
}

0 commit comments

Comments
 (0)