From 54890ee98b9068af41214b86fb693135f0998a0a Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 14 Sep 2023 12:21:57 -0400 Subject: chore(tests): ability to pattern match unordered lines (#20488) This adds the ability to pattern match unordered lines. For example, the downloading messages may appear in any order ``` [UNORDERED_START] Download https://localhost:4546/a.ts Download https://localhost:4546/b.ts [UNORDERED_END] Hello! ``` Additionally, I've made the pattern matching slightly more strict and the output better. --- cli/tests/integration/run_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tests/integration') diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index 0edfe1c48..be9bc554a 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -870,7 +870,7 @@ itest!(lock_write_fetch { itest!(lock_check_ok { args: - "run --lock=run/lock_check_ok.json http://127.0.0.1:4545/run/003_relative_import.ts", + "run --quiet --lock=run/lock_check_ok.json http://127.0.0.1:4545/run/003_relative_import.ts", output: "run/003_relative_import.ts.out", http_server: true, }); @@ -917,7 +917,7 @@ itest!(lock_flag_overrides_config_file_lock_path { itest!(lock_v2_check_ok { args: - "run --lock=run/lock_v2_check_ok.json http://127.0.0.1:4545/run/003_relative_import.ts", + "run --quiet --lock=run/lock_v2_check_ok.json http://127.0.0.1:4545/run/003_relative_import.ts", output: "run/003_relative_import.ts.out", http_server: true, }); -- cgit v1.2.3