Common store test for LoadNextMsgMulti#5275
Merged
derekcollison merged 1 commit intomainfrom Apr 4, 2024
Merged
Conversation
Member
Author
|
Example: |
a6803bc to
ead85a7
Compare
Member
derekcollison
left a comment
There was a problem hiding this comment.
I am generally in favor.
A couple of points though.
- For tests that really have nothing to do with all permutations this seems quite wasteful and we do have some of those tests.
- Make sure to update Travis config so that these are properly run on travis. Ivan just made some changes to peel out the filestore tests, so we need to update that.
It concerns me a little that by duplicating the same test for both file and memory stores, that differences could slip in later that mean we are no longer testing for consistency between the two stores. This approach allows us to write tests that only use the `StreamStore` API and have them tested against all store permutations. Signed-off-by: Neil Twigg <neil@nats.io>
ead85a7 to
1433ee3
Compare
Member
Author
|
Good point, I added a I already copied in the same build tags that Ivan added to |
Member
|
@neilalexander But you then need to add a |
This was referenced Apr 4, 2024
derekcollison
added a commit
that referenced
this pull request
Apr 4, 2024
I missed this change in #5275. Signed-off-by: Neil Twigg <neil@nats.io>
Member
|
Thanks @kozlovic, that was what I was worried about. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It concerns me a little that by duplicating the same test for both file and memory stores, that differences could slip in later that mean we are no longer testing for consistency between the two stores.
This approach allows us to write tests that only use the
StreamStoreAPI and have them tested against all store permutations.Signed-off-by: Neil Twigg neil@nats.io