Skip to content

Commit

Permalink
test(exporter-logs-otlp-grpc): improve error reporting in particular …
Browse files Browse the repository at this point in the history
…test failure (#4953)
  • Loading branch information
trentm authored Aug 26, 2024
1 parent c398601 commit 2ca2459
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,17 @@ const testCollectorExporter = (params: TestParams) => {
server.bindAsync(
serverAddr.protocol === 'https:' ? serverAddr.host : address,
credentials,
() => {
server.start();
done();
err => {
if (err) {
done(err);
} else {
server.start();
done();
}
}
);
});
})
.catch(done);
});

after(() => {
Expand Down

0 comments on commit 2ca2459

Please sign in to comment.