Skip to content

Commit

Permalink
fix: batchSpanProcessor test failing intermittently (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurkale22 authored Oct 21, 2019
1 parent dc4ed28 commit 2848296
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,19 @@ describe('BatchSpanProcessor', () => {
it('should create a BatchSpanProcessor instance', () => {
const processor = new BatchSpanProcessor(exporter);
assert.ok(processor instanceof BatchSpanProcessor);
processor.shutdown();
});

it('should create a BatchSpanProcessor instance with config', () => {
const processor = new BatchSpanProcessor(exporter, defaultBufferConfig);
assert.ok(processor instanceof BatchSpanProcessor);
processor.shutdown();
});

it('should create a BatchSpanProcessor instance with empty config', () => {
const processor = new BatchSpanProcessor(exporter, {});
assert.ok(processor instanceof BatchSpanProcessor);
processor.shutdown();
});
});

Expand Down Expand Up @@ -100,6 +103,7 @@ describe('BatchSpanProcessor', () => {
processor.onEnd(span);
assert.strictEqual(exporter.getFinishedSpans().length, 0);
}
processor.shutdown();
});

it('should force flush when timeout exceeded', done => {
Expand Down

0 comments on commit 2848296

Please sign in to comment.