From 047307b48a03112eb3489542309834a485dcb21e Mon Sep 17 00:00:00 2001 From: Thomas Rittson Date: Wed, 2 Apr 2025 12:43:40 +1000 Subject: [PATCH] fix tests --- .../Authorization/OrganizationRequirementHandlerTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Api.Test/AdminConsole/Authorization/OrganizationRequirementHandlerTests.cs b/test/Api.Test/AdminConsole/Authorization/OrganizationRequirementHandlerTests.cs index 0305c83363..d3f65a9d2d 100644 --- a/test/Api.Test/AdminConsole/Authorization/OrganizationRequirementHandlerTests.cs +++ b/test/Api.Test/AdminConsole/Authorization/OrganizationRequirementHandlerTests.cs @@ -21,8 +21,8 @@ public class OrganizationRequirementHandlerTests var authContext = new AuthorizationHandlerContext([testRequirement], new ClaimsPrincipal(), null); // Act - var exception = await Assert.ThrowsAsync(() => sutProvider.Sut.HandleAsync(authContext)); - Assert.Contains("No organizationId found", exception.Message); + var exception = await Assert.ThrowsAsync(() => sutProvider.Sut.HandleAsync(authContext)); + Assert.Contains("should include a route value named 'orgId'", exception.Message); Assert.False(authContext.HasSucceeded); }