Skip to content

Commit 7512933

Browse files
committed
temp
1 parent f5fe7c2 commit 7512933

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

redis/tests/support/cluster.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ impl RedisCluster {
206206

207207
match process.try_wait() {
208208
Ok(Some(status)) => {
209-
210209
let stdout = process.stdout.map_or(String::new(), |mut out|{
211210
let mut str = String::new();
212211
out.read_to_string(&mut str).unwrap();
@@ -221,7 +220,7 @@ impl RedisCluster {
221220
format!("redis server creation failed with status {status:?}.\nstdout: `{stdout}`.\nstderr: `{stderr}`");
222221
if cur_attempts == max_attempts {
223222
let log_file_index = cmd.get_args().position(|os_str| os_str == "--logfile").unwrap() + 1;
224-
let log_file_path = cmd.get_args().skip(log_file_index).next().unwrap();
223+
let log_file_path = cmd.get_args().nth(log_file_index).unwrap();
225224
let contents = std::fs::read_to_string(log_file_path).unwrap();
226225
panic!("{err} - logfile: {contents}");
227226
}

0 commit comments

Comments
 (0)