Skip to content

test(agent): fix service banner and metadata intervals #8516

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

Merged
merged 2 commits into from
Jul 14, 2023

Conversation

mafredri
Copy link
Member

No description provided.

Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

I feel like these tests would be less racy if we could pass a chan time.Time between the agent being tested and the unit test itself.

@mafredri
Copy link
Member Author

I feel like these tests would be less racy if we could pass a chan time.Time between the agent being tested and the unit test itself.

I think the entire metadata test could use a re-think, we already know when the agent posts updates due to injected function so we could utilize that knowledge. AFAICT there’s no race in the service banner test though and the intent in this PR was to remove the conditional test code to avoid such use in the future.

@mafredri mafredri merged commit 5fd77ad into main Jul 14, 2023
@mafredri mafredri deleted the mafredri/test-agent-fix-intervals branch July 14, 2023 13:10
@github-actions github-actions bot locked and limited conversation to collaborators Jul 14, 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.

2 participants