Skip to content

Commit

Permalink
Fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlock committed Oct 17, 2024
1 parent 5cf0866 commit ed190c3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ public DynamicConfigurationTests(ITestOutputHelper output)
public async Task UpdateConfiguration()
{
using var agent = EnvironmentHelper.GetMockAgent(useTelemetry: true);
var processName = EnvironmentHelper.IsCoreClr() ? "dotnet" : "Samples.Console";
using var logEntryWatcher = new LogEntryWatcher($"{LogFileNamePrefix}{processName}*", LogDirectory);
using var logEntryWatcher = new LogEntryWatcher($"{LogFileNamePrefix}*", LogDirectory);
using var sample = await StartSample(agent, "wait", string.Empty, aspNetCorePort: 5000);

try
Expand Down Expand Up @@ -103,8 +102,7 @@ await UpdateAndValidateConfig(
public async Task RestoreInitialConfiguration()
{
using var agent = EnvironmentHelper.GetMockAgent(useTelemetry: true);
var processName = EnvironmentHelper.IsCoreClr() ? "dotnet" : "Samples.Console";
using var logEntryWatcher = new LogEntryWatcher($"{LogFileNamePrefix}{processName}*", LogDirectory);
using var logEntryWatcher = new LogEntryWatcher($"{LogFileNamePrefix}*", LogDirectory);

SetEnvironmentVariable("DD_TRACE_SAMPLE_RATE", "0.9");
using var sample = await StartSample(agent, "wait", string.Empty, aspNetCorePort: 5000);
Expand Down

0 comments on commit ed190c3

Please sign in to comment.