-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent migration tests from using out-of-sync data
Currently, some migration tests reuse storage for migration. It can lead to tests failing when the storage cache gets out of sync with underlying storage. For example: 1. Use storage 1 to store valueA in public domain directly. 2. Use storage 2 to store valueB in public domain via ExecuteTransaction(). 3. Reuse storage 1 for migration. Here, migration only sees valueA from cache instead of both values. This commit prevents out-of-sync issues by creating new runtime.Storage for migrations instead of reusing old storage.
- Loading branch information
Showing
2 changed files
with
59 additions
and
28 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.