Skip to content

Commit

Permalink
integration-tests: Remove receipt check
Browse files Browse the repository at this point in the history
  • Loading branch information
cdamian committed Oct 6, 2024
1 parent 8652784 commit d173b9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion runtime/integration-tests/src/cases/lp/pool_management.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use crate::{
},
};

#[test_runtimes([centrifuge, development])]
#[test_runtimes([development])]
fn add_currency<T: Runtime>() {
let mut env = super::setup::<T, _>(|_| {});

Expand Down
5 changes: 2 additions & 3 deletions runtime/integration-tests/src/cases/lp/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use staging_xcm::{
use crate::{
cases::lp::{EVM_DOMAIN_CHAIN_ID, EVM_ROUTER_ID, POOL_A, POOL_B, POOL_C},
config::Runtime,
utils::{accounts::Keyring, evm::receipt_ok, last_event, pool::get_tranche_ids},
utils::{accounts::Keyring, last_event, pool::get_tranche_ids},
};

/// Returns the local representation of a remote ethereum account
Expand Down Expand Up @@ -86,15 +86,14 @@ pub fn pool_c_tranche_1_id<T: Runtime>() -> TrancheId {
}

pub fn verify_outbound_failure_on_lp<T: Runtime>(to: H160) {
let (_tx, status, receipt) = pallet_ethereum::Pending::<T>::get()
let (_tx, status, _receipt) = pallet_ethereum::Pending::<T>::get()
.last()
.expect("Queue triggered evm tx.")
.clone();

// The sender is the sender account on the gateway
assert_eq!(T::Sender::get().h160(), status.from);
assert_eq!(status.to.unwrap().0, to.0);
assert!(!receipt_ok(receipt));
assert!(matches!(
last_event::<T, pallet_liquidity_pools_gateway_queue::Event::<T>>(),
pallet_liquidity_pools_gateway_queue::Event::<T>::MessageExecutionFailure { .. }
Expand Down

0 comments on commit d173b9c

Please sign in to comment.