test(exporter-logs-otlp-grpc): improve error reporting in particular test failure (#4953)

This commit is contained in:
Trent Mick 2024-08-26 04:35:42 -07:00 committed by GitHub
parent c398601cc1
commit 2ca2459414
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 4 deletions

View File

@ -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(() => {