diff --git a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpLogExporterTests.cs b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpLogExporterTests.cs index 224cf985654..018c9f01117 100644 --- a/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpLogExporterTests.cs +++ b/test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/OtlpLogExporterTests.cs @@ -30,28 +30,31 @@ public class OtlpLogExporterTests : Http2UnencryptedSupportTests [Fact] public void AddOtlpExporterWithNamedOptions() { - int defaultExporterOptionsConfigureOptionsInvocations = 0; - int namedExporterOptionsConfigureOptionsInvocations = 0; + int defaultConfigureExporterOptionsInvocations = 0; + int namedConfigureExporterOptionsInvocations = 0; using var loggerProvider = Sdk.CreateLoggerProviderBuilder() .ConfigureServices(services => { - services.Configure(o => defaultExporterOptionsConfigureOptionsInvocations++); - services.Configure(o => defaultExporterOptionsConfigureOptionsInvocations++); + services.Configure(o => defaultConfigureExporterOptionsInvocations++); + services.Configure(o => defaultConfigureExporterOptionsInvocations++); + services.Configure(o => defaultConfigureExporterOptionsInvocations++); - services.Configure("Exporter2", o => namedExporterOptionsConfigureOptionsInvocations++); - services.Configure("Exporter2", o => namedExporterOptionsConfigureOptionsInvocations++); + services.Configure("Exporter2", o => namedConfigureExporterOptionsInvocations++); + services.Configure("Exporter2", o => namedConfigureExporterOptionsInvocations++); + services.Configure("Exporter2", o => namedConfigureExporterOptionsInvocations++); - services.Configure("Exporter3", o => namedExporterOptionsConfigureOptionsInvocations++); - services.Configure("Exporter3", o => namedExporterOptionsConfigureOptionsInvocations++); + services.Configure("Exporter3", o => namedConfigureExporterOptionsInvocations++); + services.Configure("Exporter3", o => namedConfigureExporterOptionsInvocations++); + services.Configure("Exporter3", o => namedConfigureExporterOptionsInvocations++); }) .AddOtlpExporter() .AddOtlpExporter("Exporter2", o => { }) .AddOtlpExporter("Exporter3", o => { }) .Build(); - Assert.Equal(2, defaultExporterOptionsConfigureOptionsInvocations); - Assert.Equal(4, namedExporterOptionsConfigureOptionsInvocations); + Assert.Equal(3, defaultConfigureExporterOptionsInvocations); + Assert.Equal(6, namedConfigureExporterOptionsInvocations); } [Fact]