-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
234 refactor dia implementation (#387)
* Add re-usable implementation of DIA mock * Deduplicate redeem * Deduplicate issue * Deduplicate nomination * Deduplicate replace * Deduplicate vault registry * Change cfg macros * Remove `benchmark_utils.rs` * WIP * Fix compilation of runtime _without_ features * Implement oracle mock with no_std dependencies * Remove unused `spin` dependency from testchain runtime * Amend fix * Re-add cfg_attr * Fix mock and test cases * Cleanup code * Improve `derive_key` function * Try to fix vault-registry tests * Use `#[serial]` in vault registry tests * Add `Mutex` lock to oracle mock * Acquire lock before executing each vault-registry test * Revert "Use `#[serial]` in vault registry tests" This reverts commit de0c453. * WIP * Use `OnceBox` * Fix remaining race conditions in vault registry tests * Fix dependency declaration * Refactor imports * Refactor mock logic into separate files * Declare test dependencies as `optional` * Remove `#[serial]` from oracle tests again * Remove `sp-tracing` again * Final refactoring * Rename type and structs * Rename `clear_values()` * Rename `acquire_lock()` * Rename `feed_values()` * Remove `clone()`
- Loading branch information
Showing
19 changed files
with
295 additions
and
646 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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.