Skip to content

Commit

Permalink
fix(metric-reader): actually add batch to _batches in TestMetricExporter
Browse files Browse the repository at this point in the history
  • Loading branch information
pichlermarc committed Jan 7, 2022
1 parent 9a4b24b commit 0ff2c92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TestMetricExporter extends MetricExporter {
private _batches: MetricData[][] = [];

async export(batch: MetricData[]): Promise<void> {
this._batches.push([]);
this._batches.push(batch);

if (this.throwException) {
throw new Error('Error during export');
Expand Down

0 comments on commit 0ff2c92

Please sign in to comment.