mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 13:01:07 +00:00
tests: fix UI test so we can update CI image (#7901)
* tests: fix UI test so we can update CI image * CI: remove diener installation from the script as it's installed in CI image * tests: another fix * tests: fix another fix * tests: NLoEOF * tests: another broken stderr
This commit is contained in:
@@ -41,8 +41,6 @@ EOT
|
||||
git config --global user.name 'CI system'
|
||||
git config --global user.email '<>'
|
||||
|
||||
cargo install -f --version 0.2.0 diener
|
||||
|
||||
# Merge master into our branch before building Polkadot to make sure we don't miss
|
||||
# any commits that are required by Polkadot.
|
||||
git fetch --depth 100 origin
|
||||
@@ -88,7 +86,7 @@ else
|
||||
fi
|
||||
|
||||
cd ..
|
||||
$CARGO_HOME/bin/diener --substrate --branch $CI_COMMIT_REF_NAME --git https://gitlab.parity.io/parity/substrate.git --path polkadot
|
||||
diener --substrate --branch $CI_COMMIT_REF_NAME --git https://gitlab.parity.io/parity/substrate.git --path polkadot
|
||||
cd polkadot
|
||||
|
||||
# Test Polkadot pr or master branch with this Substrate commit.
|
||||
|
||||
@@ -3,9 +3,48 @@ error[E0277]: the trait bound `pallet::Call<T>: Decode` is not satisfied
|
||||
|
|
||||
17 | #[pallet::call]
|
||||
| ^^^^ the trait `Decode` is not implemented for `pallet::Call<T>`
|
||||
|
|
||||
::: $WORKSPACE/frame/support/src/dispatch.rs
|
||||
|
|
||||
| type Call: UnfilteredDispatchable + Codec + Clone + PartialEq + Eq;
|
||||
| ----- required by this bound in `frame_support::Callable::Call`
|
||||
|
||||
error[E0277]: the trait bound `pallet::Call<T>: pallet::_::_parity_scale_codec::Encode` is not satisfied
|
||||
--> $DIR/call_argument_invalid_bound_2.rs:17:12
|
||||
|
|
||||
17 | #[pallet::call]
|
||||
| ^^^^ the trait `pallet::_::_parity_scale_codec::Encode` is not implemented for `pallet::Call<T>`
|
||||
|
|
||||
::: $WORKSPACE/frame/support/src/dispatch.rs
|
||||
|
|
||||
| type Call: UnfilteredDispatchable + Codec + Clone + PartialEq + Eq;
|
||||
| ----- required by this bound in `frame_support::Callable::Call`
|
||||
|
||||
error[E0369]: binary operation `==` cannot be applied to type `&<T as pallet::Config>::Bar`
|
||||
--> $DIR/call_argument_invalid_bound_2.rs:20:37
|
||||
|
|
||||
20 | fn foo(origin: OriginFor<T>, bar: T::Bar) -> DispatchResultWithPostInfo {
|
||||
| ^
|
||||
|
|
||||
help: consider further restricting this bound
|
||||
|
|
||||
17 | #[pallet::call + std::cmp::PartialEq]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `<T as pallet::Config>::Bar: Clone` is not satisfied
|
||||
--> $DIR/call_argument_invalid_bound_2.rs:20:37
|
||||
|
|
||||
20 | fn foo(origin: OriginFor<T>, bar: T::Bar) -> DispatchResultWithPostInfo {
|
||||
| ^ the trait `Clone` is not implemented for `<T as pallet::Config>::Bar`
|
||||
|
|
||||
= note: required by `clone`
|
||||
|
||||
error[E0277]: `<T as pallet::Config>::Bar` doesn't implement `std::fmt::Debug`
|
||||
--> $DIR/call_argument_invalid_bound_2.rs:20:37
|
||||
|
|
||||
20 | fn foo(origin: OriginFor<T>, bar: T::Bar) -> DispatchResultWithPostInfo {
|
||||
| ^ `<T as pallet::Config>::Bar` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
|
||||
|
|
||||
= help: the trait `std::fmt::Debug` is not implemented for `<T as pallet::Config>::Bar`
|
||||
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&<T as pallet::Config>::Bar`
|
||||
= note: required for the cast to the object type `dyn std::fmt::Debug`
|
||||
|
||||
@@ -5,4 +5,4 @@ error[E0446]: private type `_GeneratedPrefixForStorageFoo<T>` in public interfac
|
||||
| ^^^^^ can't leak private type
|
||||
...
|
||||
20 | #[pallet::storage]
|
||||
| - `_GeneratedPrefixForStorageFoo<T>` declared as private
|
||||
| ------- `_GeneratedPrefixForStorageFoo<T>` declared as private
|
||||
|
||||
@@ -19,7 +19,7 @@ error[E0277]: the trait bound `u32: From<sp_api_hidden_includes_DECL_RUNTIME_API
|
||||
::: $WORKSPACE/primitives/api/src/lib.rs
|
||||
|
|
||||
| type Error: std::fmt::Debug + From<ApiError>;
|
||||
| -------------- required by this bound in `ApiErrorExt`
|
||||
| -------------- required by this bound in `sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::ApiErrorExt::Error`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<u32 as From<HttpError>>
|
||||
|
||||
Reference in New Issue
Block a user