From 9e77e02bcec4ff5e07869f0590763683bf20208c Mon Sep 17 00:00:00 2001 From: Gabriel Moise Date: Wed, 26 Mar 2025 15:15:21 +0000 Subject: [PATCH] Tezt: Revert change from kill to terminate for Agnostic_baker --- tezt/tests/baker_test.ml | 2 +- tezt/tests/nonce_seed_revelation.ml | 6 +++--- tezt/tests/synchronisation_heuristic.ml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tezt/tests/baker_test.ml b/tezt/tests/baker_test.ml index 0e3ac1a59466..319d534cd1b5 100644 --- a/tezt/tests/baker_test.ml +++ b/tezt/tests/baker_test.ml @@ -313,7 +313,7 @@ let baker_check_consensus_branch = Log.info "Start a baker and bake until level %d" target_level ; let* baker = Agnostic_baker.init node client in let* _ = Node.wait_for_level node target_level in - let* () = Agnostic_baker.terminate baker in + let* () = Agnostic_baker.kill baker in Log.info "Retrieve mempool" ; let* mempool = diff --git a/tezt/tests/nonce_seed_revelation.ml b/tezt/tests/nonce_seed_revelation.ml index ecd3e74d9942..4c8f510ff064 100644 --- a/tezt/tests/nonce_seed_revelation.ml +++ b/tezt/tests/nonce_seed_revelation.ml @@ -286,7 +286,7 @@ let test_baking_nonce_migration = "Bake until the level: %d (end of the second cycle) then kill the baker" target_level ; let* _ = target_level_promise in - let* () = Agnostic_baker.terminate baker in + let* () = Agnostic_baker.kill baker in Log.info "Retrieve the nonce file contents" ; let* chain_id = Client.RPC.call client @@ RPC.get_chain_chain_id () in @@ -309,7 +309,7 @@ let test_baking_nonce_migration = target_level ; let* () = Agnostic_baker.run baker in let* _ = target_level_promise in - let* () = Agnostic_baker.terminate baker in + let* () = Agnostic_baker.kill baker in Log.info "Concat old nonces contents with the new one" ; let new_nonces_contents = Base.read_file nonces_file in @@ -327,7 +327,7 @@ let test_baking_nonce_migration = in let* () = Agnostic_baker.run baker in let* _ = failed_migration_event in - let* () = Agnostic_baker.terminate baker in + let* () = Agnostic_baker.kill baker in Log.info "Remove old nonces contents from nonces file" ; let () = Base.write_file nonces_file ~contents:new_nonces_contents in diff --git a/tezt/tests/synchronisation_heuristic.ml b/tezt/tests/synchronisation_heuristic.ml index a0299e9f2d14..19a45beb9100 100644 --- a/tezt/tests/synchronisation_heuristic.ml +++ b/tezt/tests/synchronisation_heuristic.ml @@ -295,7 +295,7 @@ let test_threshold_one = in let* () = Client.Admin.connect_address client ~peer:node1 in let* _ = Node.wait_for_level node 2 in - let* () = Agnostic_baker.terminate baker in + let* () = Agnostic_baker.kill baker in Log.info "Check bootstrapped state of second peer" ; let* () = Client.bootstrapped client1 in @@ -363,7 +363,7 @@ let test_threshold_two = unit) [node; node1; node2; node3] in - let* () = Agnostic_baker.terminate baker in + let* () = Agnostic_baker.kill baker in let* () = Client.bootstrapped client in let* () = Client.bootstrapped client1 in -- GitLab