-
Notifications
You must be signed in to change notification settings - Fork 26
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
algod importer: Fix archival mode and update tests. #57
Conversation
algodServer: NewAlgodServer(GenesisResponder, | ||
BlockResponder, | ||
BlockAfterResponder, | ||
MakeSyncRoundResponder(http.StatusNotFound))}, |
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.
Most of these http.StatusOK
to http.StatusNotFound
changes led to tests that fail without the bugfix.
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.
Verified the new tests fail on old and pass with new. Left a minor question.
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.
Looks good, one question about parallel tests
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
Summary
When adding in the recent follow mode automation the algod import mode the archival configuration was not accounted for. A bug in the unit test which treated sync calls to be treated as no-ops instead of not found errors allowed the regression to be missed.
Test Plan
Update archival mode unit tests to return a 404 when sync endpoints are called to properly reflect the behavior of an archival node.