From d3bb56697f73f2acae36474964de58b88e062c31 Mon Sep 17 00:00:00 2001 From: Lohachov Mykhailo Date: Thu, 24 Oct 2024 22:36:33 +0900 Subject: [PATCH] chore: enable correct_pagination_assets_after_creating_new_one test Signed-off-by: Lohachov Mykhailo --- crates/iroha/tests/sorting.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/iroha/tests/sorting.rs b/crates/iroha/tests/sorting.rs index 3bf941afcd..041b160d13 100644 --- a/crates/iroha/tests/sorting.rs +++ b/crates/iroha/tests/sorting.rs @@ -15,11 +15,10 @@ use nonzero_ext::nonzero; use rand::{seq::SliceRandom, thread_rng}; #[test] -#[ignore] #[allow(clippy::cast_possible_truncation)] fn correct_pagination_assets_after_creating_new_one() { // FIXME transaction is rejected for more than a certain number of instructions - const N_ASSETS: usize = 12; + const N_ASSETS: usize = 9; // 0 < pagination.start < missing_idx < pagination.end < N_ASSETS let missing_indices = vec![N_ASSETS / 2]; let pagination = Pagination { @@ -77,7 +76,7 @@ fn correct_pagination_assets_after_creating_new_one() { .expect("Valid"); let queried_assets = test_client - .query(client::asset::all()) + .query(FindAssets::new()) .filter(xor_filter.clone()) .with_pagination(pagination) .with_sorting(sorting.clone()) @@ -102,7 +101,7 @@ fn correct_pagination_assets_after_creating_new_one() { .expect("Valid"); let queried_assets = test_client - .query(client::asset::all()) + .query(FindAssets::new()) .filter(xor_filter) .with_pagination(pagination) .with_sorting(sorting)