From 59cc7f2ad31be4989d406cd671d3ac1c203ccac5 Mon Sep 17 00:00:00 2001 From: Daniel Sainati Date: Thu, 19 Oct 2023 11:50:30 -0400 Subject: [PATCH] fix test --- runtime/tests/checker/entitlements_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/tests/checker/entitlements_test.go b/runtime/tests/checker/entitlements_test.go index 0bf9fafe53..3a9caca646 100644 --- a/runtime/tests/checker/entitlements_test.go +++ b/runtime/tests/checker/entitlements_test.go @@ -1471,7 +1471,9 @@ func TestCheckBasicEntitlementMappingAccess(t *testing.T) { } `) - assert.NoError(t, err) + errs := RequireCheckerErrors(t, err, 1) + + require.IsType(t, &sema.InvalidMappedAuthorizationOutsideOfFieldError{}, errs[0]) }) t.Run("invalid mapping", func(t *testing.T) {