-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Common store test for LoadNextMsgMulti
#5275
Conversation
Example:
|
a6803bc
to
ead85a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
ead85a7
to
1433ee3
Compare
Good point, I added a
I already copied in the same build tags that Ivan added to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@neilalexander But you then need to add a |
I missed this change in #5275. Signed-off-by: Neil Twigg <[email protected]>
Thanks @kozlovic, that was what I was worried about. |
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 [email protected]