Skip to content

Commit 7bb7648

Browse files
committed
explicitly add sleep ensuring scheduler have chance to slide in an execution of upgrade script when loading precomputed archive blocks
1 parent c7f2013 commit 7bb7648

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/test/archive/archive_node_tests/live_upgrade_archive.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ let test_case (test_data : t) =
4848
let%bind () =
4949
Daemon.archive_blocks_from_files daemon.executor
5050
~archive_address:test_data.archive.config.server_port ~format:`Precomputed
51-
precomputed_blocks
51+
~sleep:5 precomputed_blocks
5252
in
5353
[%log info] "Loaded all precomputed blocks" ;
5454
let%bind () = Ivar.read upgrade_script_finished in

src/test/mina_automation/daemon.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ type t = { config : Config.t; executor : Executor.t }
193193
let archive_blocks_from_files t ~archive_address ~format ?(sleep = 5) blocks =
194194
Deferred.List.iter blocks ~f:(fun block ->
195195
let%bind _ = archive_blocks t ~archive_address ~format [ block ] () in
196-
(* WARN: live upgrade test expect this sleep to be present so we can emulate a race condition *)
197196
after (Time.Span.of_sec (Float.of_int sleep)) )
198197

199198
let of_config config = { config; executor = Executor.AutoDetect }

0 commit comments

Comments
 (0)