Skip to content

Commit

Permalink
chore: enable correct_pagination_assets_after_creating_new_one test
Browse files Browse the repository at this point in the history
Signed-off-by: Lohachov Mykhailo <lohachov@soramitsu.co.jp>
  • Loading branch information
aoyako committed Oct 24, 2024
1 parent 84b56f6 commit d3bb566
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/iroha/tests/sorting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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())
Expand All @@ -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)
Expand Down

0 comments on commit d3bb566

Please sign in to comment.