-
Notifications
You must be signed in to change notification settings - Fork 14
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
Appending expecting revision 0 does not return an error #69
Comments
Sweet! Thanks for working on that 😀
I was probably thinking at the time that if you wanted to expect 0 you could use |
@the-mikedavis thanks for the fast answer, I baked a small PR as you suggested. Should we change this one as well? |
Oh yeah let's allow 0 there as well 👍 |
@the-mikedavis force-pushed, done! |
I am trying to integrate spear with commanded by strangling the Extreme library from the extreme_adapter.
Appending works, but I realized some test was not passing due to the
expect: 0
being ignored.The test tries to append 3 events and then it asserts that appending expecting a
revision: 0
returns an error.Other assertions are true with revisions
>= 1
Here is the test for reference:
where:
This line seems to be the culprit:
spear/lib/spear/writing.ex
Line 72 in 9c8041a
Removing the guard seems to do the trick.
Is there any reason why the revision needs to be
>= 1
while mapping the expectations?Thanks in advance!
The text was updated successfully, but these errors were encountered: