Skip to content

Conversation

@lukebakken
Copy link
Contributor

@lukebakken lukebakken commented Nov 24, 2025

Seven Describe blocks in environment_test.go incorrectly contain test code directly in the Describe block body instead of inside It blocks. Ginkgo requires all assertions and test setup to be inside leaf nodes (It, BeforeEach, AfterEach, etc.), not in container nodes. This causes panics during test tree construction when the test framework is not fully initialized.

This change wraps all test code in the following Describe blocks with
appropriate It blocks:

  • "TCP Parameters"
  • "Environment Validations"
  • "Validation Query Offset/Sequence"
  • "Stream Existing/Meta data"
  • "Address Resolver"
  • "Query Offset should return the value from Store Offset"
  • "QueryOffset DeclareStream StoreOffset should reconnect the locator"

All tests now pass successfully with proper Ginkgo structure.

@lukebakken lukebakken marked this pull request as draft November 24, 2025 17:35
Seven `Describe` blocks in `environment_test.go` incorrectly contain test
code directly in the `Describe` block body instead of inside `It` blocks.
Ginkgo requires all assertions and test setup to be inside leaf nodes
(`It`, `BeforeEach`, `AfterEach`, etc.), not in container nodes. This
causes panics during test tree construction when the test framework is
not fully initialized.

This change wraps all test code in the following `Describe` blocks with
appropriate `It` blocks:
- "TCP Parameters"
- "Environment Validations"
- "Validation Query Offset/Sequence"
- "Stream Existing/Meta data"
- "Address Resolver"
- "Query Offset should return the value from Store Offset"
- "QueryOffset DeclareStream StoreOffset should reconnect the locator"

All tests now pass successfully with proper Ginkgo structure.
@lukebakken lukebakken force-pushed the lukebakken/ginkgo-test-fixes branch from 2203642 to 1e6b6fe Compare November 24, 2025 17:39
@lukebakken lukebakken marked this pull request as ready for review November 24, 2025 17:40
@Gsantomaggio Gsantomaggio merged commit 968eaed into rabbitmq:main Nov 24, 2025
2 checks passed
@Gsantomaggio Gsantomaggio added this to the 1.6.2 milestone Nov 24, 2025
@Gsantomaggio Gsantomaggio self-assigned this Nov 24, 2025
@Gsantomaggio Gsantomaggio added the enhancement New feature or request label Nov 24, 2025
@lukebakken lukebakken deleted the lukebakken/ginkgo-test-fixes branch November 24, 2025 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants