Skip to content

[SPARK-59200][STREAMING][TESTS] Simplify redundant boolean comparisons in BlockGeneratorSuite - #58490

Open
uros-b wants to merge 1 commit into
apache:masterfrom
uros-b:blockgenerator-assert-bool
Open

[SPARK-59200][STREAMING][TESTS] Simplify redundant boolean comparisons in BlockGeneratorSuite#58490
uros-b wants to merge 1 commit into
apache:masterfrom
uros-b:blockgenerator-assert-bool

Conversation

@uros-b

@uros-b uros-b commented Sep 3, 2026

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

BlockGeneratorSuite checks boolean conditions with x === false in 23 places (both assert and require). This replaces them with !x.

Why are the changes needed?

!x is the idiomatic form, and for the assert cases ScalaTest's macro produces a clearer failure message than the x === false comparison. No logic change.

Does this PR introduce any user-facing change?

No. Test-only.

How was this patch tested?

Existing tests. This is a behavior-preserving refactor; the streaming test module compiles cleanly.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.8)

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