Skip to content

Commit

Permalink
fix(test): suppress new xunit warning due to no other available APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
amis92 committed Oct 18, 2023
1 parent c4fcea6 commit 481581c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ public void Dataset_compiles_and_binds()
{
var xmlWorkspace = SampleDataResources.CreateXmlWorkspace();
var compilation = WhamCompilation.Create(
#pragma warning disable xUnit1031 // Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead.
xmlWorkspace.Documents.Select(x => SourceTree.CreateForRoot(x.GetRootAsync().Result!)).ToImmutableArray());
#pragma warning restore xUnit1031
var gamesystem = compilation.GlobalNamespace.RootCatalogue;
var grannies = compilation.GlobalNamespace.Catalogues.First(x => x.Name.Contains("Grannies"));
var roster1 = compilation.GlobalNamespace.Rosters.First(x => x.Name.Contains("Roster 1"));
Expand Down

0 comments on commit 481581c

Please sign in to comment.