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

#3513: Rewrite TestTimeMuteStage tests #3794

Merged

Conversation

grobinson-grafana
Copy link
Contributor

This commit rewrites the existing TestTimeMuteStage unit tests to have complete isolation between test cases. Before this change, each test case affected the state of its subsequent tests.

The motiviation behind this change is to make it easier to assert that alerts have been marked as muted.

@grobinson-grafana grobinson-grafana changed the title Rewrite TestTimeMuteStage tests #3513: Rewrite TestTimeMuteStage tests Apr 3, 2024
This commit rewrites the existing TestTimeMuteStage unit tests
to have complete isolation between test cases. Before this change,
each test case affected the state of its subsequent tests.

The motiviation behind this change is to make it easier to assert
that alerts have been marked as muted.

Signed-off-by: George Robinson <george.robinson@grafana.com>
Signed-off-by: George Robinson <george.robinson@grafana.com>
Signed-off-by: George Robinson <george.robinson@grafana.com>
@grobinson-grafana grobinson-grafana force-pushed the grobinson/time-mute-stage-tests branch from 01f9654 to 89d9b53 Compare April 11, 2024 11:17
Signed-off-by: George Robinson <george.robinson@grafana.com>
Copy link
Member

@gotjosh gotjosh left a comment

Choose a reason for hiding this comment

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

LGTM

@gotjosh gotjosh merged commit fc8c7d1 into prometheus:main Apr 11, 2024
11 checks passed
@grobinson-grafana grobinson-grafana deleted the grobinson/time-mute-stage-tests branch June 25, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants