Skip to content
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

chore(op-reg): adjustments and cleanup to existing tests. #4324

Merged
merged 5 commits into from
Jul 20, 2020

Conversation

abernix
Copy link
Member

@abernix abernix commented Jun 29, 2020

This PR, via multiple commits:

Individual should have more details, and I'm suggesting a merge for this when it lands to preserve those commit messages.

These are all meant to be the same in all cases.
Previously, we were leveraging `sendReportsImmediately` to ... do exactly
that even though these tests don't need to send reports _at all_!.  This was
purely a hack to make sure that we don't need to wait for the Engine
Reporting Agent to eventually fail (after 5 seconds or whatever its
reporting interval is).

This new `reportTiming` option is available with the below-linked PR, so we
can now clean this up a bit.  This has the added advantage of not hitting
our actual reporting endpoint with an invalid API key, and having the logs
spew errors about failures in delivering those doomed reports.

Ref: #3918
These just aren't used!
While we do memoize the values of `process.env` that we check, this message
is a bit confusing because of this phrasing.  We really only do this to make
testing easier, not because of any substantial runtime savings.
@abernix abernix changed the title op-reg: no-op adjustments and cleanup to existing tests. op-reg: adjustments and cleanup to existing tests. Jun 29, 2020
@abernix
Copy link
Member Author

abernix commented Jun 29, 2020

Removed the word no-op from the PR title since there are minor op changes to the tests. The noop-iness was mean to apply to the plugin implementation itself.

@abernix abernix changed the title op-reg: adjustments and cleanup to existing tests. chore(op-reg): adjustments and cleanup to existing tests. Jun 29, 2020
@abernix abernix merged commit 33073a8 into main Jul 20, 2020
@abernix abernix deleted the abernix/op-reg-test-cleanup branch August 7, 2020 20:54
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants