Wait duration and kill the command afterwards. Useful to test commands that don't exit on their own.
(mut self, duration: Duration)
| 33 | /// Wait duration and kill the command afterwards. |
| 34 | /// Useful to test commands that don't exit on their own. |
| 35 | pub fn kill_after(mut self, duration: Duration) -> Self { |
| 36 | self.kill_after = Some(duration); |
| 37 | self |
| 38 | } |
| 39 | |
| 40 | pub fn run(&self) -> Output { |
| 41 | let mut child = self.run_shell(); |
no outgoing calls