Closed ploeh closed 9 years ago
It looks correct. Two things spring to mind, though (now that we are not in happy-path testing territory).
I'm not entirely sure how one would go about adding tests for these cases, as, if the implementation is indeed correct, such tests would not fail, but maybe a few, well-chosen temporary implementation 'disablings', could do the trick.
PR updated with more test cases.
In summary, upon repeated failure of update of the index document, the events are still written, but the access time becomes more and more inefficient.
Agreed that the implementation code is a mess, but I didn't want to refactor it before I knew that it had the correct behaviour.
No further comments - I believe it works as intended now. At least, I have failed to detect any logical flaws or implementation problems.
OK, will you pull, then?
Certainly - done now.
Thank you :+1:
The purpose of this pull request is to address #96.