Skip to content

Commit 0e9f715

Browse files
committed
Back to hiding stdout and stderr
1 parent d331d20 commit 0e9f715

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/support/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ impl RedisServer {
112112
) -> RedisServer {
113113
let mut redis_cmd = process::Command::new("redis-server");
114114
redis_cmd
115-
.stdout(process::Stdio::inherit())
116-
.stderr(process::Stdio::inherit());
115+
.stdout(process::Stdio::null())
116+
.stderr(process::Stdio::null());
117117
let tempdir = tempdir::TempDir::new("redis").expect("failed to create tempdir");
118118
match addr {
119119
redis::ConnectionAddr::Tcp(ref bind, server_port) => {
@@ -152,8 +152,8 @@ impl RedisServer {
152152
.arg(&tls_cert_path)
153153
.arg("-subj")
154154
.arg("/C=XX/ST=crates/L=redis-rs/O=testing/CN=localhost")
155-
.stdout(process::Stdio::inherit())
156-
.stderr(process::Stdio::inherit())
155+
.stdout(process::Stdio::null())
156+
.stderr(process::Stdio::null())
157157
.spawn()
158158
.expect("failed to spawn openssl")
159159
.wait()
@@ -194,8 +194,8 @@ impl RedisServer {
194194
};
195195
let mut stunnel_cmd = process::Command::new("stunnel");
196196
stunnel_cmd
197-
.stdout(process::Stdio::inherit())
198-
.stderr(process::Stdio::inherit())
197+
.stdout(process::Stdio::null())
198+
.stderr(process::Stdio::null())
199199
.arg(&stunnel_config_path);
200200

201201
RedisServer {

0 commit comments

Comments
 (0)