mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 21:11:07 +00:00
Remove old UI test (#1289)
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
This commit is contained in:
committed by
GitHub
parent
c5060a5d5a
commit
7768b77d53
@@ -212,7 +212,7 @@ test-deterministic-wasm:
|
||||
- .common-refs
|
||||
# DAG
|
||||
needs:
|
||||
- job: test-frame-support
|
||||
- job: test-frame-ui
|
||||
artifacts: false
|
||||
script:
|
||||
- .gitlab/test_deterministic_wasm.sh
|
||||
@@ -295,7 +295,7 @@ node-bench-regression-guard:
|
||||
|
||||
# if this fails (especially after rust version upgrade) run
|
||||
# ./substrate/.maintain/update-rust-stable.sh <rust_version>
|
||||
test-frame-support:
|
||||
test-frame-ui:
|
||||
stage: test
|
||||
extends:
|
||||
- .docker-env
|
||||
@@ -314,9 +314,8 @@ test-frame-support:
|
||||
# Ensure we run the UI tests.
|
||||
RUN_UI_TESTS: 1
|
||||
script:
|
||||
- time cargo test --locked -p frame-support-test --features=frame-feature-testing,no-metadata-docs,try-runtime,experimental --manifest-path ./substrate/frame/support/test/Cargo.toml
|
||||
- time cargo test --locked -p frame-support-test --features=frame-feature-testing,frame-feature-testing-2,no-metadata-docs,try-runtime,experimental --manifest-path ./substrate/frame/support/test/Cargo.toml
|
||||
- SUBSTRATE_TEST_TIMEOUT=1 time cargo test -p substrate-test-utils --release --locked -- --ignored timeout
|
||||
- time cargo test --locked -q --profile testnet -p frame-support-test --features=frame-feature-testing,no-metadata-docs,try-runtime,experimental
|
||||
- time cargo test --locked -q --profile testnet -p frame-support-test --features=frame-feature-testing,frame-feature-testing-2,no-metadata-docs,try-runtime,experimental
|
||||
- cat /cargo_target_dir/debug/.fingerprint/memory_units-759eddf317490d2b/lib-memory_units.json || true
|
||||
|
||||
# This job runs all benchmarks defined in the `/bin/node/runtime` once to check that there are no errors.
|
||||
|
||||
@@ -27,6 +27,9 @@ fn ui() {
|
||||
// As trybuild is using `cargo check`, we don't need the real WASM binaries.
|
||||
std::env::set_var("SKIP_WASM_BUILD", "1");
|
||||
|
||||
// Deny all warnings since we emit warnings as part of a Runtime's UI.
|
||||
std::env::set_var("RUSTFLAGS", "--deny warnings");
|
||||
|
||||
let t = trybuild::TestCases::new();
|
||||
t.compile_fail("tests/construct_runtime_ui/*.rs");
|
||||
}
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
#[frame_support::pallet]
|
||||
mod pallet {
|
||||
use frame_support::pallet_prelude::{BuildGenesisConfig, Hooks};
|
||||
use frame_system::pallet_prelude::BlockNumberFor;
|
||||
|
||||
#[pallet::config]
|
||||
pub trait Config: frame_system::Config {}
|
||||
|
||||
#[pallet::pallet]
|
||||
pub struct Pallet<T>(core::marker::PhantomData<T>);
|
||||
|
||||
#[pallet::hooks]
|
||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
||||
|
||||
#[pallet::call]
|
||||
impl<T: Config> Pallet<T> {}
|
||||
|
||||
#[pallet::genesis_config]
|
||||
pub struct GenesisConfig;
|
||||
|
||||
#[pallet::genesis_build]
|
||||
impl BuildGenesisConfig for GenesisConfig {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
error[E0277]: the trait bound `pallet::GenesisConfig: std::default::Default` is not satisfied
|
||||
--> tests/pallet_ui/genesis_default_not_satisfied.rs:22:30
|
||||
|
|
||||
22 | impl BuildGenesisConfig for GenesisConfig {}
|
||||
| ^^^^^^^^^^^^^ the trait `std::default::Default` is not implemented for `pallet::GenesisConfig`
|
||||
|
|
||||
note: required by a bound in `BuildGenesisConfig`
|
||||
--> $WORKSPACE/substrate/frame/support/src/traits/hooks.rs
|
||||
|
|
||||
| pub trait BuildGenesisConfig: Default + sp_runtime::traits::MaybeSerializeDeserialize {
|
||||
| ^^^^^^^ required by this bound in `BuildGenesisConfig`
|
||||
help: consider annotating `pallet::GenesisConfig` with `#[derive(Default)]`
|
||||
|
|
||||
19 + #[derive(Default)]
|
||||
20 | pub struct GenesisConfig;
|
||||
|
|
||||
Reference in New Issue
Block a user