diff options
Diffstat (limited to 'cli/tools/test/fmt.rs')
| -rw-r--r-- | cli/tools/test/fmt.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/tools/test/fmt.rs b/cli/tools/test/fmt.rs index fe2007025..7dc9ceabf 100644 --- a/cli/tools/test/fmt.rs +++ b/cli/tools/test/fmt.rs @@ -107,7 +107,7 @@ fn format_sanitizer_accum( } let mut output = vec![]; - let mut needs_trace_ops = false; + let mut needs_trace_leaks = false; for ((item_type, item_name, trace), count) in accum.into_iter() { if item_type == RuntimeActivityType::Resource { let (name, action1, action2) = pretty_resource_name(&item_name); @@ -143,7 +143,7 @@ fn format_sanitizer_accum( value += &if let Some(trace) = trace { format!(" The operation {tense} started here:\n{trace}") } else { - needs_trace_ops = true; + needs_trace_leaks = true; String::new() }; output.push(value); @@ -157,8 +157,8 @@ fn format_sanitizer_accum( ); } } - if needs_trace_ops { - (output, vec!["To get more details where ops were leaked, run again with --trace-ops flag.".to_owned()]) + if needs_trace_leaks { + (output, vec!["To get more details where leaks occurred, run again with the --trace-leaks flag.".to_owned()]) } else { (output, vec![]) } @@ -360,5 +360,5 @@ mod tests { // https://github.com/denoland/deno/issues/13938 leak_format_test!(op_unknown, true, [RuntimeActivity::AsyncOp(0, None, "op_unknown")], " - An async call to op_unknown was started in this test, but never completed.\n\ - To get more details where ops were leaked, run again with --trace-ops flag.\n"); + To get more details where leaks occurred, run again with the --trace-leaks flag.\n"); } |
