Skip to content

Commit

Permalink
Test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeBlanch committed Aug 26, 2022
1 parent 0266af0 commit 4b1b10a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public void StateValuesAndScopeBufferingTest()
List<LogRecord> exportedItems = new();

using var exporter = new BatchLogRecordExportProcessor(
new InMemoryExporter<LogRecord>(exportedItems));
new InMemoryExporter<LogRecord>(exportedItems),
scheduledDelayMilliseconds: int.MaxValue);

using var scope = scopeProvider.Push(exportedItems);

Expand All @@ -45,7 +46,6 @@ public void StateValuesAndScopeBufferingTest()
logRecord.StateValues = state;

exporter.OnEnd(logRecord);
exporter.Shutdown();

state.Dispose();

Expand All @@ -71,6 +71,8 @@ public void StateValuesAndScopeBufferingTest()
null);

Assert.True(foundScope);

exporter.Shutdown();
}

[Fact]
Expand Down

0 comments on commit 4b1b10a

Please sign in to comment.