This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
4,688 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
mod test_upgrade_from_kusama_dataset; | ||
|
||
// Test that an upgrade from previous test environment works. | ||
#[test] | ||
fn test_upgrade_staking_works() { | ||
let mut storage = sp_runtime::Storage::default(); | ||
for (key, value) in test_upgrade_from_kusama_dataset::KUSAMA.iter() { | ||
storage.top.insert(key.to_vec(), value.to_vec()); | ||
} | ||
let mut ext = sp_io::TestExternalities::from(storage); | ||
ext.execute_with(|| { | ||
super::Staking::test_do_upgrade(); | ||
}); | ||
} |
Oops, something went wrong.