From 48a34ffe6d39bc72d8971e40dc54ef09ec331e49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1dn=C3=ADk?= Date: Sat, 8 Jun 2024 15:11:49 +0300 Subject: [PATCH] Fix test failure when running tests with nextest (#13101) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Description Test was failing with “did you mean” due to the `NEXTEST` env var being present when running tests via `cargo nextest run`. # User-Facing Changes # Tests + Formatting # After Submitting --- tests/shell/environment/env.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shell/environment/env.rs b/tests/shell/environment/env.rs index 74736415a3..1a9c14b18a 100644 --- a/tests/shell/environment/env.rs +++ b/tests/shell/environment/env.rs @@ -132,7 +132,7 @@ fn hides_environment_from_child() { $env.TEST = 1; ^$nu.current-exe -c "hide-env TEST; ^$nu.current-exe -c '$env.TEST'" "#); assert!(actual.out.is_empty()); - assert!(actual.err.contains("cannot find column")); + assert!(actual.err.contains("column_not_found") || actual.err.contains("name_not_found")); } #[test]