Migrate generic-asset, identity and im-online to decl_error (#4473)

* Migrate generic-asset, identity and im-online to decl_error

* Update democracy tests

* Update nicks test
This commit is contained in:
Stanislav Tkach authored and Shawn Tabrizi committed 2019-12-21 15:10:29 +01:00
1 parent f6cbf4421f
commit 2c2e0d772d
8 files changed
+153 -77

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ fn submit_candidacy_must_not_work() {
new_test_ext().execute_with(|| {
assert_noop!(
ScoredPool::submit_candidacy(Origin::signed(99)),
"not enough free funds"
pallet_balances::Error::<Test, _>::InsufficientBalance,
);
assert_noop!(
ScoredPool::submit_candidacy(Origin::signed(40)),