Skip to content

Commit

Permalink
Call GC.SupressFinalize as suggested by analyzer.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweber committed Dec 18, 2024
1 parent 9b43e88 commit b0e4519
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/Tests.Fixtures/CosmosDbEmulatorFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ await cosmosClient
}

await base.DisposeAsync();
GC.SuppressFinalize(this);
}

protected override IGremlinQuerySource TransformQuerySource(IGremlinQuerySource g) => g
Expand Down
1 change: 1 addition & 0 deletions test/Tests.Fixtures/TestContainerFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public override async ValueTask DisposeAsync()
}

await base.DisposeAsync();
GC.SuppressFinalize(this);
}

protected abstract Task<IImage> GetImage();
Expand Down
1 change: 1 addition & 0 deletions test/Tests.Infrastructure/GremlinqFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public virtual async ValueTask InitializeAsync()

public virtual async ValueTask DisposeAsync()
{
GC.SuppressFinalize(this);
}

public virtual IGremlinQuerySource GetQuerySource() => _g ?? throw new InvalidOperationException();
Expand Down

0 comments on commit b0e4519

Please sign in to comment.