File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
tests/ModelContextProtocol.AspNetCore.Tests Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ public static async Task<string> TestElicitationErrors(McpServer server)
234234 // Even when the client has elicitation support, it should not be advertised in stateless mode.
235235 Assert . Null ( server . ClientCapabilities ) ;
236236
237- var requestElicitationEx = Assert . Throws < InvalidOperationException > ( ( ) => server . ElicitAsync ( new ( ) { Message = string . Empty } ) ) ;
237+ var requestElicitationEx = await Assert . ThrowsAsync < InvalidOperationException > ( ( ) => server . ElicitAsync ( new ( ) { Message = string . Empty } ) . AsTask ( ) ) ;
238238 Assert . Equal ( expectedElicitationErrorMessage , requestElicitationEx . Message ) ;
239239
240240 var ex = await Assert . ThrowsAsync < InvalidOperationException > ( ( ) => server . SendRequestAsync ( new JsonRpcRequest
You can’t perform that action at this time.
0 commit comments