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

Add list of existing stats to assertion not-found failures #105

Merged
merged 4 commits into from
Sep 21, 2020

Conversation

haltwise
Copy link
Contributor

In more complex cases (e.g. with use of tags, deeply nested scopes), it is not always super obvious what the full name of a metric will end up being. This change lists the names of all recorded metrics in the failure message for assertions that fail due to an expected metric not being found, so that you can easily compare the expected metric name to the actually-generated metric name.

mock/sink.go Outdated Show resolved Hide resolved
charlievieth
charlievieth previously approved these changes Sep 19, 2020
Copy link
Contributor

@charlievieth charlievieth left a comment

Choose a reason for hiding this comment

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

One nit, but LGTM. Also, looks like the failure is due to some flakiness so you'll need to kick the Travis build again or push a commit.

@haltwise haltwise merged commit 503d0e4 into master Sep 21, 2020
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