Skip to content

Commit

Permalink
GH-525: tests pass persistently
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarshg6 committed Oct 8, 2024
1 parent 37e193e commit b930edf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions node/src/node_configurator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ fn get_config_file_from_mc(
data_directory_def: bool,
dirs_wrapper: &dyn DirsWrapper,
) -> FieldPair<PathBuf> {
eprintln!("Data Directory: {:?}", data_directory);
let mut panic: bool = false;
let config_file = value_m!(multi_config, "config-file", PathBuf);
match config_file {
Expand Down
12 changes: 7 additions & 5 deletions node/src/server_initializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ pub mod tests {

#[test]
fn go_updates_entry_dns_flag() {
let _ = LogfileNameGuard::new(&PathBuf::from("uninitialized"));
let _ = LogfileNameGuard::new(&PathBuf::from("go_updates_entry_dns_flag"));
let dns_socket_server = CrashTestDummy::new(CrashPoint::None, ());
let bootstrapper = CrashTestDummy::new(CrashPoint::None, BootstrapperConfig::new());
let privilege_dropper = PrivilegeDropperMock::new();
Expand All @@ -727,7 +727,9 @@ pub mod tests {

#[test]
fn go_maintains_entry_dns_flag_disabled_if_absent_in_args() {
let _ = LogfileNameGuard::new(&PathBuf::from("uninitialized"));
let _ = LogfileNameGuard::new(&PathBuf::from(
"go_maintains_entry_dns_flag_disabled_if_absent_in_args",
));
let dns_socket_server = CrashTestDummy::new(CrashPoint::None, ());
let bootstrapper = CrashTestDummy::new(CrashPoint::None, BootstrapperConfig::new());
let privilege_dropper = PrivilegeDropperMock::new();
Expand All @@ -754,7 +756,7 @@ pub mod tests {

#[test]
fn exits_after_all_socket_servers_exit() {
let _ = LogfileNameGuard::new(&PathBuf::from("uninitialized"));
let _ = LogfileNameGuard::new(&PathBuf::from("exits_after_all_socket_servers_exit"));
let dns_socket_server = CrashTestDummy::new(CrashPoint::Error, ());
let bootstrapper = CrashTestDummy::new(CrashPoint::Error, BootstrapperConfig::new());
let dirs_wrapper = make_pre_populated_mocked_directory_wrapper();
Expand Down Expand Up @@ -844,7 +846,7 @@ pub mod tests {

#[test]
fn go_should_drop_privileges() {
let _ = LogfileNameGuard::new(&PathBuf::from("uninitialized"));
let _ = LogfileNameGuard::new(&PathBuf::from("go_should_drop_privileges"));
let bootstrapper_init_privileged_params_arc = Arc::new(Mutex::new(vec![]));
let bootstrapper_init_unprivileged_params_arc = Arc::new(Mutex::new(vec![]));
let dns_socket_server_privileged_params_arc = Arc::new(Mutex::new(vec![]));
Expand Down Expand Up @@ -934,7 +936,7 @@ pub mod tests {

#[test]
fn go_should_combine_errors() {
let _ = LogfileNameGuard::new(&PathBuf::from("uninitialized"));
let _ = LogfileNameGuard::new(&PathBuf::from("go_should_combine_errors"));
let dns_socket_server = ConfiguredByPrivilegeMock::default()
.initialize_as_privileged_result(Err(ConfiguratorError::required(
"dns-iap",
Expand Down

0 comments on commit b930edf

Please sign in to comment.