Skip to content

test: fail CKMSQuantiles test if nothing throws - #2649

Merged
zeitlinger merged 1 commit into
prometheus:mainfrom
sharanggupta:test-quantile-illegal-args
Nov 6, 2026
Merged

zeitlinger merged 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>
@zeitlinger
zeitlinger merged commit bc51df8 into prometheus:main Nov 6, 2026
23 checks passed
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