Skip to content

test(exporter-*-grpc): use RegExp to match Deadline Exceeded error #4620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

pichlermarc
Copy link
Member

Which problem is this PR solving?

New versions of @grpc/grpc-js add more info to the Deadline Exceeded error, making our tests fail. The error still starts with Deadline Exceeded so I switched the assertion from a strictEqual() to a match()

Short description of the changes

  • Update @grpc/grpc-js to latest (package-lock.json only)
  • Adapt tests

How Has This Been Tested?

  • Modified existing tests

Copy link
Contributor

@trentm trentm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -10,6 +10,7 @@
"hasInstallScript": true,
"license": "Apache-2.0",
"workspaces": [
"api",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is curious. This line was removed in #4601. See discussion in #4621.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened #4623 to fix this 🙂

@pichlermarc
Copy link
Member Author

LGTM

FWIW, I think the relevant grpc-js change was: grpc/grpc-node@d7d1717#diff-a2981769852ae1a4aa124162b4180aa93f74f0e999aa382b8efc524f6a083441R118

Thanks for digging that one up 🙂 It's good to have a reference 👍

@pichlermarc pichlermarc merged commit 19660db into open-telemetry:main Apr 10, 2024
18 of 19 checks passed
@pichlermarc pichlermarc deleted the test/exporter-new-grpc-version branch April 10, 2024 15:53
legalimpurity pushed a commit to legalimpurity/opentelemetry-js that referenced this pull request Apr 26, 2024
Zirak pushed a commit to Zirak/opentelemetry-js that referenced this pull request Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants