Skip to content

Tests: Fix require_NotNil#6152

Merged
derekcollison merged 2 commits intomainfrom
neil/requirenotnil
Nov 22, 2024
Merged

Tests: Fix require_NotNil#6152
derekcollison merged 2 commits intomainfrom
neil/requirenotnil

Conversation

@neilalexander
Copy link
Copy Markdown
Member

Previous behaviour of checking interface is nil didn't do the right thing as a nil parameter could still be wrapped in an interface descriptor that itself would be non-nil, so use reflection instead.

Signed-off-by: Neil Twigg neil@nats.io

@neilalexander neilalexander requested a review from a team as a code owner November 20, 2024 11:03
Previous behaviour of checking interface is `nil` didn't do the right
thing as a `nil` parameter could still be wrapped in an interface
descriptor that itself would be non-`nil`, so use reflection instead.

Signed-off-by: Neil Twigg <neil@nats.io>
There were various things wrong with this test:

1. The routes between S1 and S2 were only slow in one direction
2. The stream listened for one subject and then the publisher published
   on another
3. The final `checkFor` didn't wait to see if all of the messages had
   even been processed before going on to check preack state

Signed-off-by: Neil Twigg <neil@nats.io>
Copy link
Copy Markdown
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@derekcollison derekcollison merged commit 4ecfb58 into main Nov 22, 2024
@derekcollison derekcollison deleted the neil/requirenotnil branch November 22, 2024 14:31
neilalexander added a commit that referenced this pull request Nov 22, 2024
Includes:

- #6147
- #6150
- #6151
- #6153
- #6154
- #6146
- #6139
- #6152
- #6157
- #6161

Signed-off-by: Neil Twigg <neil@nats.io>
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