From ac6e4f5793ff4117f31f8b0a763e1a57fa3e3ebb Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 3 Jun 2026 01:53:30 -0400 Subject: [PATCH] test: allow multiple 'has been added' matches in preview test 3 For an undeployed app, the additive diff covers every chart resource, so the literal 'has been added' header appears once per resource - six times in the python test app's chart. `assert_output_contains` defaults to exact-count 1, which fails. Pass -1 (at least 1) to match the actual semantics of the test. --- tests/unit/scheduler-k3s-preview.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/scheduler-k3s-preview.bats b/tests/unit/scheduler-k3s-preview.bats index 66e4c1882..6a9273b9d 100644 --- a/tests/unit/scheduler-k3s-preview.bats +++ b/tests/unit/scheduler-k3s-preview.bats @@ -87,5 +87,5 @@ teardown() { echo "output: $output" echo "status: $status" assert_success - assert_output_contains "has been added" + assert_output_contains "has been added" -1 }