Skip to content

Commit d6b203a

Browse files
committed
chore: fix wrong rebase changes
1 parent d2af178 commit d6b203a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/BenchmarkDotNet.TestAdapter/BenchmarkEnumerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ public static BenchmarkRunInfo[] GetBenchmarksFromAssemblyPath(string assemblyPa
6767
.ToArray();
6868
}
6969
}
70-
}
70+
}

src/BenchmarkDotNet.TestAdapter/BenchmarkExecutor.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using BenchmarkDotNet.Configs;
2+
using BenchmarkDotNet.Loggers;
23
using BenchmarkDotNet.Running;
34
using BenchmarkDotNet.TestAdapter.Remoting;
45
using Microsoft.VisualStudio.TestPlatform.ObjectModel;
@@ -14,7 +15,7 @@ namespace BenchmarkDotNet.TestAdapter
1415
/// </summary>
1516
internal class BenchmarkExecutor
1617
{
17-
private readonly CancellationTokenSource cts = new ();
18+
private readonly CancellationTokenSource cts = new();
1819

1920
/// <summary>
2021
/// Runs all the benchmarks in the given assembly, updating the TestExecutionRecorder as they get run.
@@ -67,7 +68,10 @@ public void RunBenchmarks(string assemblyPath, TestExecutionRecorderWrapper reco
6768
.Select(b => new BenchmarkRunInfo(
6869
b.BenchmarksCases,
6970
b.Type,
70-
b.Config.AddEventProcessor(eventProcessor).AddLogger(logger).CreateImmutableConfig()))
71+
b.Config.AddEventProcessor(eventProcessor)
72+
.AddLogger(logger)
73+
.RemoveLoggersOfType<ConsoleLogger>() // Console logs are also outputted by VSTestLogger.
74+
.CreateImmutableConfig()))
7175
.ToArray();
7276

7377
// Run all the benchmarks, and ensure that any tests that don't have a result yet are sent.

0 commit comments

Comments
 (0)