This is an automated email from the ASF dual-hosted git repository.
piotr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/master by this push:
new b3798361 chore(test): delete redundant code of test_server (#1801)
b3798361 is described below
commit b379836143dcb6bc318e2013f564b843a7870e85
Author: Cancai Cai <[email protected]>
AuthorDate: Tue May 20 01:40:22 2025 +0800
chore(test): delete redundant code of test_server (#1801)
---
core/integration/src/test_server.rs | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/core/integration/src/test_server.rs
b/core/integration/src/test_server.rs
index 605d0b8f..f800bcbb 100644
--- a/core/integration/src/test_server.rs
+++ b/core/integration/src/test_server.rs
@@ -22,7 +22,7 @@ use std::fs::{File, OpenOptions};
use std::io::{BufRead, BufReader, Write};
use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr};
use std::path::{Path, PathBuf};
-use std::process::{Child, Command};
+use std::process::{Child, Command, Stdio};
use std::thread::{panicking, sleep};
use std::time::Duration;
@@ -171,11 +171,11 @@ impl TestServer {
self.cleanup();
let files_path = self.local_data_path.clone();
let mut command = if let Some(server_executable_path) =
&self.server_executable_path {
- std::process::Command::new(server_executable_path)
+ Command::new(server_executable_path)
} else {
Command::cargo_bin("iggy-server").unwrap()
};
- command.env(SYSTEM_PATH_ENV_VAR, files_path.clone());
+ command.env(SYSTEM_PATH_ENV_VAR, files_path);
command.envs(self.envs.clone());
// By default, server all logs are redirected to files,
@@ -184,8 +184,8 @@ impl TestServer {
if std::env::var(TEST_VERBOSITY_ENV_VAR).is_ok()
|| self.envs.contains_key(TEST_VERBOSITY_ENV_VAR)
{
- command.stdout(std::process::Stdio::inherit());
- command.stderr(std::process::Stdio::inherit());
+ command.stdout(Stdio::inherit());
+ command.stderr(Stdio::inherit());
} else {
command.stdout(self.get_stdout_file());
self.stdout_file_path =
Some(fs::canonicalize(self.get_stdout_file_path()).unwrap());