-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fullblocktests: Decouple from blockchain.
The blockchain/fullblocktests package currently has a cyclic dependency on blockchain since the tests directly return the error codes in blockchain that are expected to be violated while blockchain itself needs to import the package in order to run the tests. This resolves that cyclic dependency by defining all of the errors the fullblocktests produce in the package itself and then converting them to the associated error in blockchain when running the tests and checking for the expected error. It also moves the code that runs the fullblocktests into the blockchain itself instead of a separate blockchain_test to match all other tests now that there is no longer a cyclic dependency that forced it to be be separated. While duplication of the errors in question is a little less convenient, this approach ensures the blockchain package can be made internal in the future while still providing the publicly-available fullblocktests package for use both in testing the internal blockchain implementation as well as integration tests with other implementations.
- Loading branch information
Showing
4 changed files
with
798 additions
and
294 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.