From 87fbe5e4ce9f9dff24c2075442787f8cbfd487f1 Mon Sep 17 00:00:00 2001 From: bear Date: Fri, 13 Jan 2023 17:23:45 +0800 Subject: [PATCH] Fix CI test --- pallet/message-transact/src/tests/eip1559.rs | 3 ++- pallet/message-transact/src/tests/eip2930.rs | 2 +- pallet/message-transact/src/tests/legacy.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pallet/message-transact/src/tests/eip1559.rs b/pallet/message-transact/src/tests/eip1559.rs index 8247ce60..6ea902e3 100644 --- a/pallet/message-transact/src/tests/eip1559.rs +++ b/pallet/message-transact/src/tests/eip1559.rs @@ -111,11 +111,12 @@ fn test_dispatch_eip1559_transaction_weight_mismatch() { ); assert!(!result.dispatch_result); + System::assert_has_event(RuntimeEvent::Dispatch( pallet_bridge_dispatch::Event::MessageWeightMismatch( SOURCE_CHAIN_ID, mock_message_id, - Weight::from_ref_time(1249913722000), + Weight::from_ref_time(1249901046000), Weight::from_ref_time(1000000000000), ), )); diff --git a/pallet/message-transact/src/tests/eip2930.rs b/pallet/message-transact/src/tests/eip2930.rs index 1bbf012a..fefef528 100644 --- a/pallet/message-transact/src/tests/eip2930.rs +++ b/pallet/message-transact/src/tests/eip2930.rs @@ -114,7 +114,7 @@ fn test_dispatch_eip2930_transaction_weight_mismatch() { pallet_bridge_dispatch::Event::MessageWeightMismatch( SOURCE_CHAIN_ID, mock_message_id, - Weight::from_ref_time(1249913722000), + Weight::from_ref_time(1249901046000), Weight::from_ref_time(1000000000000), ), )); diff --git a/pallet/message-transact/src/tests/legacy.rs b/pallet/message-transact/src/tests/legacy.rs index 23fd8759..3e730759 100644 --- a/pallet/message-transact/src/tests/legacy.rs +++ b/pallet/message-transact/src/tests/legacy.rs @@ -111,7 +111,7 @@ fn test_dispatch_legacy_transaction_weight_mismatch() { pallet_bridge_dispatch::Event::MessageWeightMismatch( SOURCE_CHAIN_ID, mock_message_id, - Weight::from_ref_time(1249913722000), + Weight::from_ref_time(1249901046000), Weight::from_ref_time(1000000000000), ), ));