Skip to content

Commit ec2983b

Browse files
Copilothalter73
andauthored
Fix test for CannotAuthenticate when metadata is missing (#1266)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: halter73 <54385+halter73@users.noreply.github.com>
1 parent b8ae4fe commit ec2983b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tests/ModelContextProtocol.AspNetCore.Tests/OAuth

tests/ModelContextProtocol.AspNetCore.Tests/OAuth/AuthTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ public async Task CannotAuthenticate_WhenProtectedResourceMetadataMissingResourc
542542

543543
var metadata = new ProtectedResourceMetadata
544544
{
545-
AuthorizationServers = { new Uri(OAuthServerUrl) },
545+
AuthorizationServers = { OAuthServerUrl },
546546
ScopesSupported = ["mcp:tools"],
547547
};
548548

0 commit comments

Comments
 (0)