From f2fa330bc71e5dfb88c65b36c204657caaffddfa Mon Sep 17 00:00:00 2001 From: Mathieu Dutour Sikiric Date: Wed, 12 Jun 2024 16:13:57 +0200 Subject: [PATCH 1/3] Add some process_inbox calls. --- linera-service/tests/end_to_end_tests.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/linera-service/tests/end_to_end_tests.rs b/linera-service/tests/end_to_end_tests.rs index 965b31d6876..1f56a05c3b9 100644 --- a/linera-service/tests/end_to_end_tests.rs +++ b/linera-service/tests/end_to_end_tests.rs @@ -1436,6 +1436,9 @@ async fn test_wasm_end_to_end_matching_engine(config: impl LineraNetConfig) -> R node_service_admin .request_application(&chain_admin, &token1) .await?; + node_service_admin.process_inbox(&chain_admin).await?; + node_service_a.process_inbox(&chain_a).await?; + node_service_b.process_inbox(&chain_b).await?; let app_fungible0_a = FungibleApp(node_service_a.make_application(&chain_a, &token0).await?); let app_fungible1_a = FungibleApp(node_service_a.make_application(&chain_a, &token1).await?); @@ -1500,6 +1503,9 @@ async fn test_wasm_end_to_end_matching_engine(config: impl LineraNetConfig) -> R &[token0.forget_abi(), token1.forget_abi()], ) .await?; + node_service_admin.process_inbox(&chain_admin).await?; + node_service_a.process_inbox(&chain_a).await?; + node_service_b.process_inbox(&chain_b).await?; let app_matching_admin = MatchingEngineApp( node_service_admin .make_application(&chain_admin, &application_id_matching) From 34ae8bb0e35fd950519f93e3b819e1a6b9a2e02b Mon Sep 17 00:00:00 2001 From: Mathieu Dutour Sikiric Date: Thu, 13 Jun 2024 13:37:59 +0200 Subject: [PATCH 2/3] Change the position of the process_inbox statements. --- linera-service/tests/end_to_end_tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linera-service/tests/end_to_end_tests.rs b/linera-service/tests/end_to_end_tests.rs index 1f56a05c3b9..de46943825d 100644 --- a/linera-service/tests/end_to_end_tests.rs +++ b/linera-service/tests/end_to_end_tests.rs @@ -1503,9 +1503,6 @@ async fn test_wasm_end_to_end_matching_engine(config: impl LineraNetConfig) -> R &[token0.forget_abi(), token1.forget_abi()], ) .await?; - node_service_admin.process_inbox(&chain_admin).await?; - node_service_a.process_inbox(&chain_a).await?; - node_service_b.process_inbox(&chain_b).await?; let app_matching_admin = MatchingEngineApp( node_service_admin .make_application(&chain_admin, &application_id_matching) @@ -1527,6 +1524,9 @@ async fn test_wasm_end_to_end_matching_engine(config: impl LineraNetConfig) -> R .make_application(&chain_b, &application_id_matching) .await?, ); + node_service_admin.process_inbox(&chain_admin).await?; + node_service_a.process_inbox(&chain_a).await?; + node_service_b.process_inbox(&chain_b).await?; // Now creating orders for price in [1, 2] { From b0aa700890e01190cf75132fc26aaece8ac1bb81 Mon Sep 17 00:00:00 2001 From: Mathieu Dutour Sikiric Date: Thu, 13 Jun 2024 16:29:23 +0200 Subject: [PATCH 3/3] Change the position of the request applications. --- linera-service/tests/end_to_end_tests.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/linera-service/tests/end_to_end_tests.rs b/linera-service/tests/end_to_end_tests.rs index de46943825d..24f50011086 100644 --- a/linera-service/tests/end_to_end_tests.rs +++ b/linera-service/tests/end_to_end_tests.rs @@ -1511,6 +1511,7 @@ async fn test_wasm_end_to_end_matching_engine(config: impl LineraNetConfig) -> R node_service_a .request_application(&chain_a, &application_id_matching) .await?; + node_service_a.process_inbox(&chain_a).await?; let app_matching_a = MatchingEngineApp( node_service_a .make_application(&chain_a, &application_id_matching) @@ -1519,14 +1520,12 @@ async fn test_wasm_end_to_end_matching_engine(config: impl LineraNetConfig) -> R node_service_b .request_application(&chain_b, &application_id_matching) .await?; + node_service_b.process_inbox(&chain_b).await?; let app_matching_b = MatchingEngineApp( node_service_b .make_application(&chain_b, &application_id_matching) .await?, ); - node_service_admin.process_inbox(&chain_admin).await?; - node_service_a.process_inbox(&chain_a).await?; - node_service_b.process_inbox(&chain_b).await?; // Now creating orders for price in [1, 2] {