Fix randomly failing test (#1200)

* Fix randomly failing test

* Fix randomly failing test
This commit is contained in:
Jonathan Turner 2020-01-13 06:03:28 +13:00 committed by GitHub
parent 0dcd90cb8f
commit 5fd3191d91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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"));