Skip to content

Commit

Permalink
[Fix] xmi reader tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samatstariongroup committed Nov 17, 2024
1 parent ff752cf commit 985bb8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion uml4net.xmi.Tests/SysML2.XmiReaderTestFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void OneTimeSetUp()
[Test]
public async Task Verify_that_SysML_XMI_can_be_read()

Check warning on line 53 in uml4net.xmi.Tests/SysML2.XmiReaderTestFixture.cs

View workflow job for this annotation

GitHub Actions / build

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 53 in uml4net.xmi.Tests/SysML2.XmiReaderTestFixture.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
{
using var reader = XmiReaderBuilder.Create()
var reader = XmiReaderBuilder.Create()
.WithLogger(this.loggerFactory)
.Build();

Expand Down
4 changes: 2 additions & 2 deletions uml4net.xmi.Tests/UMLXmiReaderTestFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void Verify_that_UML_PrimitiveTypes__XMI_can_be_read()
{
var rootPath = Path.Combine(TestContext.CurrentContext.TestDirectory, "TestData");

using var reader = XmiReaderBuilder.Create()
var reader = XmiReaderBuilder.Create()
.UsingSettings(x => x.LocalReferenceBasePath = rootPath)
.WithLogger(this.loggerFactory)
.Build();
Expand All @@ -80,7 +80,7 @@ public void Verify_that_UML_XMI_can_be_read()
{
var rootPath = Path.Combine(TestContext.CurrentContext.TestDirectory, "TestData");

using var reader = XmiReaderBuilder.Create()
var reader = XmiReaderBuilder.Create()
.UsingSettings(x => x.LocalReferenceBasePath = rootPath)
.WithLogger(this.loggerFactory)
.Build();
Expand Down

0 comments on commit 985bb8b

Please sign in to comment.