Skip to content

test: fail CKMSQuantiles test if nothing throws - #2649

Open
sharanggupta wants to merge 1 commit into
prometheus:mainfrom
sharanggupta:test-quantile-illegal-args
Open

sharanggupta wants to merge 1 commit into
prometheus:mainfrom
sharanggupta:test-quantile-illegal-args

Conversation

@sharanggupta

Copy link
Copy Markdown
Contributor

CKMSQuantilesTest.testIllegalArgumentException checked the messages only in catch blocks with no fail() after the calls, so it passed even if Quantile stopped rejecting out-of-range arguments. It now uses assertThatExceptionOfType, like the other tests in the module.

The message checks sat in catch blocks with no fail() after the call,
so the test passed even if Quantile stopped rejecting its arguments.

Signed-off-by: Sharang Gupta <sharang@sharanggupta.dev>

This branch has not been deployed

No deployments
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.

1 participant