Skip to content

Commit

Permalink
Remove not relevant test
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiEres committed Nov 6, 2024
1 parent 39e31a0 commit 1ef4bed
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions polkadot/node/core/pvf/tests/it/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,44 +196,6 @@ async fn execute_job_terminates_on_timeout() {
assert!(duration < TEST_EXECUTION_TIMEOUT * JOB_TIMEOUT_WALL_CLOCK_FACTOR);
}

#[tokio::test]
async fn execute_job_terminates_on_execution_ttl() {
let host = TestHost::new().await;
let pvd = PersistedValidationData {
parent_head: Default::default(),
relay_parent_number: 1u32,
relay_parent_storage_root: H256::default(),
max_pov_size: 4096 * 1024,
};
let pov = PoV { block_data: BlockData(Vec::new()) };
let relay_parent = Hash::random();

host.update_active_leaves(
ActiveLeavesUpdate::start_work(new_leaf(Hash::random(), 10)),
vec![relay_parent],
)
.await;

let start = std::time::Instant::now();
let result = host
.validate_candidate(
test_parachain_halt::wasm_binary_unwrap(),
pvd,
pov,
Default::default(),
relay_parent,
)
.await;

match result {
Err(ValidationError::ExecutionDeadline) => {},
r => panic!("{:?}", r),
}

let duration = std::time::Instant::now().duration_since(start);
assert!(duration < TEST_EXECUTION_TIMEOUT);
}

#[cfg(feature = "ci-only-tests")]
#[tokio::test]
async fn ensure_parallel_execution() {
Expand Down

0 comments on commit 1ef4bed

Please sign in to comment.