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); }