Skip to content

Commit

Permalink
test(expoerter-*-grpc): use RegExp to match Deadline Exceeded error (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pichlermarc authored Apr 10, 2024
1 parent 7fb673c commit 19660db
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ const testCollectorExporter = (params: TestParams) => {
setTimeout(() => {
const result = responseSpy.args[0][0] as core.ExportResult;
assert.strictEqual(result.code, core.ExportResultCode.FAILED);
assert.strictEqual(
assert.match(
responseSpy.args[0][0].error.details,
'Deadline exceeded'
/Deadline exceeded.*/
);
done();
}, 300);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ const testCollectorExporter = (params: TestParams) => {
setTimeout(() => {
const result = responseSpy.args[0][0] as core.ExportResult;
assert.strictEqual(result.code, core.ExportResultCode.FAILED);
assert.strictEqual(
assert.match(
responseSpy.args[0][0].error.details,
'Deadline exceeded'
/Deadline exceeded.*/
);
done();
}, 300);
Expand Down
34 changes: 26 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 19660db

Please sign in to comment.