Skip to content

Commit

Permalink
fixes bench test ordering & fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderian committed Nov 26, 2024
1 parent 792d032 commit e71e8cd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/reusable-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 9 additions & 11 deletions rollup/runtime/integration-test/src/market.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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,
}],
}));
})
}

0 comments on commit e71e8cd

Please sign in to comment.