Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<PackageVersion Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="5.0.0" />
<PackageVersion Include="Roslynator.Analyzers" Version="4.15.0" />
<PackageVersion Include="SonarAnalyzer.CSharp" Version="10.5.0.109200" />
<PackageVersion Include="SonarAnalyzer.CSharp" Version="10.17.0.131074" />
<PackageVersion Include="ErrorProne.NET.CoreAnalyzers" Version="0.6.1-beta.1" />
<PackageVersion Include="ErrorProne.NET.Structs" Version="0.6.1-beta.1" />

Expand Down
4 changes: 2 additions & 2 deletions tests/MCPsharp.Tests/Services/SearchServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ public async Task SearchTextAsync_CancellationToken_CancelsOperation()
Pattern = "line"
};

// Act & Assert
Assert.ThrowsAsync<TaskCanceledException>(
// Act & Assert - use CatchAsync to accept both OperationCanceledException and TaskCanceledException
Assert.CatchAsync<OperationCanceledException>(
async () => await _searchService.SearchTextAsync(request, cts.Token));
}

Expand Down
Loading