From e051e6653d4dab1ed7eaf7374e854be4537c3c9e Mon Sep 17 00:00:00 2001 From: Albin Coquereau Date: Fri, 8 Sep 2023 09:22:03 +0200 Subject: [PATCH] tezt/long_tests: fix mempool operation rpc call in pipelining test --- tezt/long_tests/pipelining.ml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tezt/long_tests/pipelining.ml b/tezt/long_tests/pipelining.ml index cdd2c3b2e29d..530b21e57026 100644 --- a/tezt/long_tests/pipelining.ml +++ b/tezt/long_tests/pipelining.ml @@ -543,15 +543,13 @@ let operation_and_block_validation protocol manager_kind tag = measure_and_check_regression ~margin reclassify_title !reclassification_time in - Log.info "Ensure that the mempool contains %d operations" number_of_operations ; - let* json = - RPC.Client.call ~endpoint:(Node node2) client - @@ RPC.get_chain_mempool_pending_operations () - in - let json_list = JSON.(json |-> "applied" |> as_list) in - Check.(List.length json_list = number_of_operations) + Log.info + "Ensure that the mempool contains %d validated operations" + number_of_operations ; + let* mempool = Mempool.get_mempool client in + Check.(List.length mempool.validated = number_of_operations) Check.int - ~error_msg:"Expected %R operations in block. Got %L" ; + ~error_msg:"Expected %R validated operations in the mempool. Got %L" ; (* Setting up a event watchers on validation and application of blocks to measure the time needed to validate and apply a block *) -- GitLab