forked from paritytech/substrate
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make some UI test expectations crisper (paritytech#10791)
* Make some UI test expectations crisper * Update frame/support/test/tests/construct_runtime_ui/undefined_genesis_config_part.rs * Update UI test expectations * Missing newlines * More whitespace issues
- Loading branch information
Showing
14 changed files
with
465 additions
and
489 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
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
74 changes: 7 additions & 67 deletions
74
frame/support/test/tests/construct_runtime_ui/undefined_call_part.stderr
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 |
---|---|---|
@@ -1,76 +1,16 @@ | ||
error: `Pallet` does not have #[pallet::call] defined, perhaps you should remove `Call` from construct_runtime? | ||
--> $DIR/undefined_call_part.rs:5:1 | ||
--> tests/construct_runtime_ui/undefined_call_part.rs:5:1 | ||
| | ||
5 | #[frame_support::pallet] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
... | ||
22 | / construct_runtime! { | ||
23 | | pub enum Runtime where | ||
24 | | Block = Block, | ||
25 | | NodeBlock = Block, | ||
49 | / construct_runtime! { | ||
50 | | pub enum Runtime where | ||
51 | | Block = Block, | ||
52 | | NodeBlock = Block, | ||
... | | ||
30 | | } | ||
31 | | } | ||
57 | | } | ||
58 | | } | ||
| |_- in this macro invocation | ||
| | ||
= note: this error originates in the macro `pallet::__substrate_call_check::is_call_part_defined` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error[E0433]: failed to resolve: use of undeclared crate or module `system` | ||
--> $DIR/undefined_call_part.rs:28:11 | ||
| | ||
28 | System: system::{Pallet, Call, Storage, Config, Event<T>}, | ||
| ^^^^^^ use of undeclared crate or module `system` | ||
|
||
error[E0433]: failed to resolve: use of undeclared crate or module `system` | ||
--> $DIR/undefined_call_part.rs:22:1 | ||
| | ||
22 | / construct_runtime! { | ||
23 | | pub enum Runtime where | ||
24 | | Block = Block, | ||
25 | | NodeBlock = Block, | ||
... | | ||
30 | | } | ||
31 | | } | ||
| |_^ not found in `system` | ||
| | ||
= note: this error originates in the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
help: consider importing this enum | ||
| | ||
1 | use frame_system::RawOrigin; | ||
| | ||
|
||
error[E0433]: failed to resolve: use of undeclared crate or module `system` | ||
--> $DIR/undefined_call_part.rs:22:1 | ||
| | ||
22 | / construct_runtime! { | ||
23 | | pub enum Runtime where | ||
24 | | Block = Block, | ||
25 | | NodeBlock = Block, | ||
... | | ||
30 | | } | ||
31 | | } | ||
| |_^ not found in `system` | ||
| | ||
= note: this error originates in the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
help: consider importing one of these items | ||
| | ||
1 | use crate::pallet::Pallet; | ||
| | ||
1 | use frame_support_test::Pallet; | ||
| | ||
1 | use frame_system::Pallet; | ||
| | ||
1 | use test_pallet::Pallet; | ||
| | ||
|
||
error[E0277]: the trait bound `Runtime: frame_system::Config` is not satisfied | ||
--> $DIR/undefined_call_part.rs:20:6 | ||
| | ||
20 | impl pallet::Config for Runtime {} | ||
| ^^^^^^^^^^^^^^ the trait `frame_system::Config` is not implemented for `Runtime` | ||
| | ||
note: required by a bound in `pallet::Config` | ||
--> $DIR/undefined_call_part.rs:8:20 | ||
| | ||
8 | pub trait Config: frame_system::Config {} | ||
| ^^^^^^^^^^^^^^^^^^^^ required by this bound in `pallet::Config` |
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.