Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Fix require_NotNil #6152

Merged
merged 2 commits into from
Nov 22, 2024
Merged

Tests: Fix require_NotNil #6152

merged 2 commits into from
Nov 22, 2024

Conversation

neilalexander
Copy link
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
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
5 checks passed
@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