From e71e8cd2867812b1e2dc6905640547b6ad10c1eb Mon Sep 17 00:00:00 2001 From: Marian Vanderka Date: Tue, 26 Nov 2024 23:23:36 +0100 Subject: [PATCH] fixes bench test ordering & fmt --- .github/workflows/reusable-build-and-test.yml | 4 ++-- rollup/runtime/integration-test/src/market.rs | 20 +++++++++---------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/reusable-build-and-test.yml b/.github/workflows/reusable-build-and-test.yml index b45da468e..69d90ae85 100644 --- a/.github/workflows/reusable-build-and-test.yml +++ b/.github/workflows/reusable-build-and-test.yml @@ -602,9 +602,9 @@ jobs: echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV echo "CARGO_INCREMENTAL=0" >> $GITHUB_ENV - name: Run benchmarks tests - run: cargo test --release -j8 --features=runtime-benchmarks -p pallet-xyk -p pallet-issuance -p pallet-multipurpose-liquidity -p pallet-fee-lock -p pallet-market + run: cargo test --release -j8 --features=runtime-benchmarks -p pallet-xyk -p pallet-issuance -p pallet-multipurpose-liquidity -p pallet-fee-lock - name: Run benchmarks tests - run: cargo test --release -j8 --features=runtime-benchmarks -p pallet-bootstrap + run: cargo test --release -j8 --features=runtime-benchmarks -p pallet-bootstrap -p pallet-market # NOTE: MGX-742 - name: Run benchmarks tests run: cargo test --release -j8 --features=runtime-benchmarks -p pallet-proof-of-stake diff --git a/rollup/runtime/integration-test/src/market.rs b/rollup/runtime/integration-test/src/market.rs index 863964712..d5236786f 100644 --- a/rollup/runtime/integration-test/src/market.rs +++ b/rollup/runtime/integration-test/src/market.rs @@ -433,7 +433,7 @@ fn test_diff_decimals_work() { let pool = Market::get_pools(Some(POOL_ID_1)); let price = Market::calculate_sell_price(POOL_ID_1, ASSET_ID_5, 1).unwrap(); - + println!("{:#?}", pool); println!("{:#?}", price); @@ -450,16 +450,14 @@ fn test_diff_decimals_work() { System::assert_last_event(RuntimeEvent::Market(Event::AssetsSwapped { who: AccountId::from(ALICE), - swaps: vec![ - AtomicSwap { - pool_id: POOL_ID_1, - kind: PoolKind::StableSwap, - asset_in: ASSET_ID_5, - asset_out: ASSET_ID_6, - amount_in: 1, - amount_out: 99, - }, - ], + swaps: vec![AtomicSwap { + pool_id: POOL_ID_1, + kind: PoolKind::StableSwap, + asset_in: ASSET_ID_5, + asset_out: ASSET_ID_6, + amount_in: 1, + amount_out: 99, + }], })); }) }