Skip to content
Snippets Groups Projects
Unverified Commit 7768b77d authored by Oliver Tale-Yazdi's avatar Oliver Tale-Yazdi Committed by GitHub
Browse files

Remove old UI test (#1289)


Signed-off-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: default avatarLiam Aharon <liam.aharon@hotmail.com>
parent c5060a5d
No related merge requests found
Pipeline #385366 failed with stages
in 1 hour, 17 minutes, and 46 seconds
......@@ -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");
}
#[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() {
}
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;
|
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment