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

Test server subject matching bug fix #221

Merged
merged 1 commit into from
Jan 25, 2022

Conversation

fdlg
Copy link
Contributor

@fdlg fdlg commented Sep 17, 2021

Subject matching function in test server was only taking into account the number of tokens in message subject.

This caused false matches when a message's subject was a prefix of longer subscription pattern

@TaborKelly
Copy link

It would be great to get this merged.

@Jarema
Copy link
Member

Jarema commented Jan 25, 2022

That is a fine fix, though @TaborKelly I strongly encourage you to test against real NATS server.
Please see tests for examples. There is also some utility to spin up new instances.

@Jarema Jarema merged commit 7544b80 into nats-io:main Jan 25, 2022
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.

3 participants