Skip to content

Commit ea0ddea

Browse files
authored
fix send_as_sovereign test (#634)
1 parent 7969776 commit ea0ddea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xtokens/src/tests.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ fn send_as_sovereign() {
356356
WithdrawAsset(assets.clone().into()),
357357
BuyExecution {
358358
fees: assets,
359-
weight_limit: Limited(10_000_000)
359+
weight_limit: Limited(2_000_000_000)
360360
},
361361
Instruction::Transact {
362362
origin_type: SovereignAccount,
@@ -368,12 +368,12 @@ fn send_as_sovereign() {
368368
});
369369

370370
Relay::execute_with(|| {
371-
relay::System::events().iter().any(|r| {
371+
assert!(relay::System::events().iter().any(|r| {
372372
matches!(
373373
r.event,
374374
relay::Event::System(frame_system::Event::<relay::Runtime>::Remarked(_, _))
375375
)
376-
});
376+
}));
377377
})
378378
}
379379

0 commit comments

Comments
 (0)