Fix more tests

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent 9bad728751
commit e67e725b1b
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -1,4 +1,4 @@
From 30d2f1dc44a0c08ef59f07e4a261c9027682ec7d Mon Sep 17 00:00:00 2001 From 0a8361d3356d3a3a65f91065c75ca2e5df43c697 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <i.gnatenko.brain@gmail.com> From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Date: Sun, 7 Jul 2019 16:36:34 +0200 Date: Sun, 7 Jul 2019 16:36:34 +0200
Subject: [PATCH] Avoid using python in the tests Subject: [PATCH] Avoid using python in the tests
@ -6,13 +6,24 @@ Subject: [PATCH] Avoid using python in the tests
References: https://github.com/oconnor663/shared_child.rs/issues/16 References: https://github.com/oconnor663/shared_child.rs/issues/16
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com> Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
--- ---
src/lib.rs | 8 +++----- src/lib.rs | 12 +++++-------
1 file changed, 3 insertions(+), 5 deletions(-) 1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/lib.rs b/src/lib.rs diff --git a/src/lib.rs b/src/lib.rs
index 5e65ba3..5509b26 100644 index 5e65ba3..345dfc5 100644
--- a/src/lib.rs --- a/src/lib.rs
+++ b/src/lib.rs +++ b/src/lib.rs
@@ -39,8 +39,8 @@
//!
//! // Spawn a child that will just sleep for a long time,
//! // and put it in an Arc to share between threads.
-//! let mut command = Command::new("python");
-//! command.arg("-c").arg("import time; time.sleep(1000000000)");
+//! let mut command = Command::new("sleep");
+//! command.arg("infinity")");
//! let shared_child = SharedChild::spawn(&mut command).unwrap();
//! let child_arc = Arc::new(shared_child);
//!
@@ -230,14 +230,12 @@ mod tests { @@ -230,14 +230,12 @@ mod tests {
use std::sync::Arc; use std::sync::Arc;

Loading…
Cancel
Save