From 0a14f712d7a2cf42e2e5705b2f5a8f1b8e67c7c2 Mon Sep 17 00:00:00 2001 From: Jane Losare-Lusby Date: Wed, 20 Nov 2024 12:11:40 -0800 Subject: [PATCH] Update tests/run-make/unstable-feature-usage-metrics/rmake.rs Co-authored-by: Esteban Kuber --- tests/run-make/unstable-feature-usage-metrics/rmake.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/run-make/unstable-feature-usage-metrics/rmake.rs b/tests/run-make/unstable-feature-usage-metrics/rmake.rs index 7e122def6b7..1397548a6fc 100644 --- a/tests/run-make/unstable-feature-usage-metrics/rmake.rs +++ b/tests/run-make/unstable-feature-usage-metrics/rmake.rs @@ -51,9 +51,9 @@ fn test_metrics_dump() { let json_path = metrics.pop().expect("there should be one metrics file in the output directory"); - assert_eq!( - 0, - metrics.len(), + // After the `pop` above, there should be no files left. + assert!( + metrics.is_empty(), "there should be no more than one metrics file in the output directory" );