Skip to content

Commit 6b5b720

Browse files
authored
Merge pull request #17771 from MinaProtocol/lyh/refactor-daemon-single-test-cont
Refactor daemon single test
2 parents 1a66e8c + 11e2809 commit 6b5b720

File tree

17 files changed

+420
-419
lines changed

17 files changed

+420
-419
lines changed

buildkite/scripts/single-node-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ source buildkite/scripts/debian/install.sh "mina-test-suite,mina-berkeley-lightn
1616
export MINA_LIBP2P_PASS="naughty blue worm"
1717
export MINA_PRIVKEY_PASS="naughty blue worm"
1818

19-
mina-command-line-tests test --mina-path mina -v
19+
mina-command-line-tests test -v

src/test/archive/archive_node_tests/archive_precomputed_blocks_test.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ type t = Mina_automation_fixture.Archive.after_bootstrap
114114

115115
let test_case (test_data : t) =
116116
let open Deferred.Let_syntax in
117-
let daemon = Daemon.default in
117+
let daemon = Daemon.default () in
118118
let archive_uri = test_data.archive.config.postgres_uri in
119119
let output = test_data.temp_dir in
120120
let%bind precomputed_blocks =
@@ -127,9 +127,9 @@ let test_case (test_data : t) =
127127
let log_file = output ^ "/precomputed_blocks_test.log" in
128128
Archive.Process.start_logging test_data.archive ~log_file ;
129129
let%bind () =
130-
Daemon.archive_blocks_from_files daemon
131-
~archive_address:test_data.archive.config.server_port
132-
~format:Archive_blocks.Precomputed precomputed_blocks
130+
Daemon.archive_blocks_from_files daemon.executor
131+
~archive_address:test_data.archive.config.server_port ~format:`Precomputed
132+
precomputed_blocks
133133
in
134134

135135
let%bind () =

src/test/archive/patch_archive_test/patch_archive_test.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ let main ~db_uri ~network_data_folder () =
113113
~archive_uri:target_db ~format:Extensional
114114
in
115115

116-
let%bind missing_blocks_auditor_path = Missing_blocks_auditor.path in
116+
let%bind missing_blocks_auditor_path = Missing_blocks_auditor.path () in
117117

118-
let%bind archive_blocks_path = Archive_blocks.path in
118+
let%bind archive_blocks_path = Archive_blocks.path () in
119119

120120
let config =
121121
{ Missing_blocks_guardian.Config.archive_uri = Uri.of_string target_db
@@ -124,7 +124,7 @@ let main ~db_uri ~network_data_folder () =
124124
; run_mode = Run
125125
; missing_blocks_auditor = missing_blocks_auditor_path
126126
; archive_blocks = archive_blocks_path
127-
; block_format = Extensional
127+
; block_format = `Extensional
128128
}
129129
in
130130

0 commit comments

Comments
 (0)