Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Oct 26, 2021
1 parent 3648365 commit 8d08f64
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion runtime/integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ xcm-emulator = { git = "https://github.com/shaunxw/xcm-simulator", rev = "4d3bb9
acala-service = { path = "../../node/service", features = ["with-all-runtime"] }

[features]
default = ["std"]
default = ["std", "with-karura-runtime"]
no_std = []
with-mandala-runtime = [
"acala-service/with-mandala-runtime",
Expand Down
1 change: 1 addition & 0 deletions runtime/integration-tests/src/homa_lite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use crate::setup::*;
use frame_support::{assert_noop, assert_ok};
use module_support::ExchangeRateProvider;
use orml_traits::{MultiCurrency, MultiReservableCurrency};

#[test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,16 @@ fn transfer_to_relay_chain() {
Origin::signed(ALICE.into()),
KSM,
dollar(KSM),
Box::new(MultiLocation::new(
1,
X1(Junction::AccountId32 {
id: BOB,
network: NetworkId::Any,
})
)),
Box::new(
MultiLocation::new(
1,
X1(Junction::AccountId32 {
id: BOB,
network: NetworkId::Any,
})
)
.into()
),
4_000_000_000
));
});
Expand Down
8 changes: 8 additions & 0 deletions runtime/integration-tests/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,14 @@ impl ExtBuilder {
)
.unwrap();

<pallet_xcm::GenesisConfig as GenesisBuild<Runtime>>::assimilate_storage(
&pallet_xcm::GenesisConfig {
safe_xcm_version: Some(2),
},
&mut t,
)
.unwrap();

let mut ext = sp_io::TestExternalities::new(t);
ext.execute_with(|| System::set_block_number(1));
ext
Expand Down

0 comments on commit 8d08f64

Please sign in to comment.