Skip to content

Commit

Permalink
Build fixes
Browse files Browse the repository at this point in the history
1. Eliminate warnings in EventFlowTelemetryProcessor
2. Increase pipeline completion timeouts in tests
  • Loading branch information
karolz-ms committed Jul 13, 2017
1 parent 09d582d commit b0020e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ private void AddMetricProperties(IDictionary<string, object> eventPayload, Metri
{
eventPayload.Add(TelemetryTypeProperty, "metric");
eventPayload.Add(nameof(metric.Name), metric.Name);
eventPayload.Add(nameof(metric.Value), metric.Value);
eventPayload.Add(nameof(metric.Sum), metric.Sum);
if (metric.Count.HasValue)
{
eventPayload.Add(nameof(metric.Count), metric.Count.Value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void ShouldPassOneInputToOneOutput()
DiagnosticPipelineConfiguration settings = new DiagnosticPipelineConfiguration()
{
MaxBatchDelayMsec = 10,
PipelineCompletionTimeoutMsec = 1000
PipelineCompletionTimeoutMsec = 5000
};

using (UnitTestInput unitTestInput = new UnitTestInput())
Expand Down Expand Up @@ -72,7 +72,7 @@ public void UsableIfBufferOverflowOccurs()
DiagnosticPipelineConfiguration settings = new DiagnosticPipelineConfiguration()
{
MaxBatchDelayMsec = 10,
PipelineCompletionTimeoutMsec = 1000,
PipelineCompletionTimeoutMsec = 5000,
PipelineBufferSize = 1,
MaxConcurrency = 1,
MaxEventBatchSize = 1
Expand Down Expand Up @@ -130,7 +130,7 @@ public void UsableIfExceptionInGlobalFilterOccurs()
DiagnosticPipelineConfiguration settings = new DiagnosticPipelineConfiguration()
{
MaxBatchDelayMsec = 10,
PipelineCompletionTimeoutMsec = 1000,
PipelineCompletionTimeoutMsec = 5000,
MaxEventBatchSize = 2
};
UnitTestFilter unitTestFilter = new UnitTestFilter();
Expand Down Expand Up @@ -172,7 +172,7 @@ public void UsableIfExceptionInOutputSpecificFilterOccurs()
DiagnosticPipelineConfiguration settings = new DiagnosticPipelineConfiguration()
{
MaxBatchDelayMsec = 10,
PipelineCompletionTimeoutMsec = 1000,
PipelineCompletionTimeoutMsec = 5000,
MaxEventBatchSize = 2
};
UnitTestFilter unitTestFilter = new UnitTestFilter();
Expand Down Expand Up @@ -212,7 +212,7 @@ public void CanDisposePipelineStuckInAFilter()
Mock<IHealthReporter> healthReporterMock = new Mock<IHealthReporter>();
UnitTestOutput unitTestOutput = new UnitTestOutput();

const int CompletionTimeoutMsec = 1000;
const int CompletionTimeoutMsec = 5000;
DiagnosticPipelineConfiguration settings = new DiagnosticPipelineConfiguration()
{
MaxBatchDelayMsec = 10,
Expand Down Expand Up @@ -259,7 +259,7 @@ public void CanDisposePipelineStuckInAnOutput()
unitTestOutput.SendEventsDelay = TimeSpan.MaxValue;
unitTestOutput.DisregardCancellationToken = true;

const int CompletionTimeoutMsec = 1000;
const int CompletionTimeoutMsec = 5000;
DiagnosticPipelineConfiguration settings = new DiagnosticPipelineConfiguration()
{
MaxBatchDelayMsec = 10,
Expand Down Expand Up @@ -307,7 +307,7 @@ public void UsableIfExceptionInOutputOccurs()
DiagnosticPipelineConfiguration settings = new DiagnosticPipelineConfiguration()
{
MaxBatchDelayMsec = 10,
PipelineCompletionTimeoutMsec = 1000,
PipelineCompletionTimeoutMsec = 5000,
MaxEventBatchSize = 2
};
const int TestEventCount = 32;
Expand Down Expand Up @@ -353,7 +353,7 @@ public async Task WarnsAboutThrottlingIfOneSinkIsSlow()
PipelineBufferSize = InputBufferSize,
MaxEventBatchSize = 4,
MaxConcurrency = 2,
PipelineCompletionTimeoutMsec = 1000
PipelineCompletionTimeoutMsec = 5000
};

using (UnitTestInput unitTestInput = new UnitTestInput())
Expand Down Expand Up @@ -402,7 +402,7 @@ public async Task DoesNotWarnIfNoThrottlingOccurs()
PipelineBufferSize = InputBufferSize,
MaxEventBatchSize = 4,
MaxConcurrency = 2,
PipelineCompletionTimeoutMsec = 1000
PipelineCompletionTimeoutMsec = 5000
};

using (UnitTestInput unitTestInput = new UnitTestInput())
Expand Down

0 comments on commit b0020e9

Please sign in to comment.