Skip to content

fix: replace ineffective assertion in OuterUnitTest (#16237)#19228

Open
aki-raa wants to merge 1 commit into
eugenp:masterfrom
aki-raa:fix/outer-unit-test-16237-v2
Open

fix: replace ineffective assertion in OuterUnitTest (#16237)#19228
aki-raa wants to merge 1 commit into
eugenp:masterfrom
aki-raa:fix/outer-unit-test-16237-v2

Conversation

@aki-raa
Copy link
Copy Markdown

@aki-raa aki-raa commented May 21, 2026

Problem

The assertion is(nestMembers.size()).equals(2) was ineffective —
it creates a Hamcrest matcher but never passes it to assertThat(),
so the test always passed regardless of the actual value.

Fix

Replaced with assertEquals(2, nestMembers.size()) which actually
validates the size.

Fixes #16237

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.

Wrong testcase,

1 participant