Skip to content

Commit 4663419

Browse files
authored
Merge pull request #17528 from MinaProtocol/dw/fix-file-system
Use Mina_stdlib_unix instead of (old) File_system library
2 parents 3308614 + 2b667d0 commit 4663419

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

src/test/mina_automation/fixture/archive.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ module Make_FixtureWithBootstrap (M : TestCaseWithBootstrap) :
6060
let open Deferred.Or_error.Let_syntax in
6161
[%log info] "Tearing down archive" ;
6262
let%bind _ = Archive.Process.force_kill t.archive in
63-
let%bind.Deferred () = File_system.remove_dir @@ t.network_data.folder in
63+
let%bind.Deferred () =
64+
Mina_stdlib_unix.File_system.remove_dir @@ t.network_data.folder
65+
in
6466
[%log info] "Archive teardown completed" ;
6567
Deferred.Or_error.ok_unit
6668

src/test/mina_automation/fixture/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
core
88
;; local libraries
99
mina_automation
10-
file_system)
10+
mina_stdlib_unix)
1111
(instrumentation
1212
(backend bisect_ppx))
1313
(preprocess

src/test/mina_automation/fixture/intf.ml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ end
1111
module type Fixture = sig
1212
type t
1313

14-
(**
15-
This module defines a type [t] representing a fixture for integration tests and provides functions to set up, run, and tear down the fixture.
16-
14+
(**
15+
This module defines a type [t] representing a fixture for integration tests
16+
and provides functions to set up, run, and tear down the fixture.
17+
1718
{1 Functions}
18-
19+
1920
- [setup ()]: Sets up the fixture and returns an instance of [t].
2021
- [test_case t]: Runs the test case associated with the fixture and returns a result.
2122
- [teardown t]: Tears down the fixture and cleans up resources.

0 commit comments

Comments
 (0)