From 5fd3191d9167307bfda943d14e217d738ebd6da6 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Mon, 13 Jan 2020 06:03:28 +1300 Subject: [PATCH] Fix randomly failing test (#1200) * Fix randomly failing test * Fix randomly failing test --- src/commands/classified/external.rs | 2 +- tests/shell/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/classified/external.rs b/src/commands/classified/external.rs index bf0a131acf..4cde3fa6f6 100644 --- a/src/commands/classified/external.rs +++ b/src/commands/classified/external.rs @@ -222,7 +222,7 @@ async fn run_with_stdin( yield Ok(Value { value: UntaggedValue::Error(ShellError::labeled_error( message, - "unable to write to stdin", + "application may have closed before completing pipeline", &name_tag, )), tag: name_tag, diff --git a/tests/shell/mod.rs b/tests/shell/mod.rs index 2a146ad176..b4bf72146c 100644 --- a/tests/shell/mod.rs +++ b/tests/shell/mod.rs @@ -96,7 +96,7 @@ mod pipeline { fn shows_error_for_external_command_that_fails() { let actual = nu_error!( cwd: "tests/fixtures", - "echo \"1\" | ^false" + "^false" ); assert!(actual.contains("External command failed"));