Skip to content

Commit

Permalink
chore: fixing test when waiting for files to be loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
obecny committed Aug 24, 2020
1 parent 4a4beb0 commit adba3c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ describe('CollectorMetricExporter - node with proto over http', () => {
metrics[2].aggregator.update(14);
metrics[3].aggregator.update(5);

// due to lazy loading ensure to wait to next tick
setImmediate(() => {
// due to lazy loading ensure to wait
setTimeout(() => {
done();
});
}, 100);
});
afterEach(() => {
spyRequest.restore();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ describe('CollectorExporter - node with proto over http', () => {
spans = [];
spans.push(Object.assign({}, mockedReadableSpan));

// due to lazy loading ensure to wait to next tick
setImmediate(() => {
// due to lazy loading ensure to wait
setTimeout(() => {
done();
});
}, 100);
});
afterEach(() => {
spyRequest.restore();
Expand Down

0 comments on commit adba3c6

Please sign in to comment.