From 3b274f7128d852e8a7d23964199b1b3ae278653d Mon Sep 17 00:00:00 2001 From: Kit Patella Date: Wed, 25 Sep 2024 14:16:37 -0700 Subject: [PATCH] fix: e2e 24 - can we assert that this error exists or do we have to ignore it Signed-off-by: Kit Patella --- src/test/e2e/24_variables_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/e2e/24_variables_test.go b/src/test/e2e/24_variables_test.go index 72490c3ebb..aa16771d53 100644 --- a/src/test/e2e/24_variables_test.go +++ b/src/test/e2e/24_variables_test.go @@ -44,8 +44,8 @@ func TestVariables(t *testing.T) { // Test that not specifying a prompted variable results in an error _, stdErr, err = e2e.Zarf(t, "package", "deploy", path, "--confirm") - require.NoError(t, err) expectedOutString = "variable 'SITE_NAME' must be '--set' when using the '--confirm' flag" + require.Error(t, err) require.Contains(t, stdErr, "", expectedOutString) // Test that specifying an invalid variable value results in an error