Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejgordon committed Mar 1, 2024
1 parent 9c0e050 commit 5072bd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/Elastic.Apm.Tests/Config/ConfigTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,8 @@ public void SetCloudProviderTest()
[Fact]
public void DefaultTransactionSampleRateTest()
{
using (var agent = new ApmAgent(new TestAgentComponents()))
agent.Configuration.TransactionSampleRate.Should().Be(DefaultValues.TransactionSampleRate);
using var agent = new ApmAgent(new TestAgentComponents());
agent.Configuration.TransactionSampleRate.Should().Be(DefaultValues.TransactionSampleRate);
}


Expand All @@ -477,8 +477,8 @@ public void TransactionSampleRateExpectsDotForFloatingPoint()
[Fact]
public void DefaultTransactionMaxSpansTest()
{
var reader = new EnvironmentConfiguration();
reader.TransactionMaxSpans.Should().Be(DefaultValues.TransactionMaxSpans);
using var agent = new ApmAgent(new TestAgentComponents());
agent.Configuration.TransactionMaxSpans.Should().Be(DefaultValues.TransactionMaxSpans);
}

[Theory]
Expand Down

0 comments on commit 5072bd1

Please sign in to comment.