From 5a06bfd415d8bf15efa22e79a0489871ec261ab4 Mon Sep 17 00:00:00 2001 From: Artur Sawicki Date: Wed, 27 Nov 2024 14:58:22 +0100 Subject: [PATCH] Go through an env --- pkg/experiments/experiment_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/experiments/experiment_test.go b/pkg/experiments/experiment_test.go index 00d06a8394..5fd98b268a 100644 --- a/pkg/experiments/experiment_test.go +++ b/pkg/experiments/experiment_test.go @@ -1,7 +1,6 @@ package experiments import ( - "fmt" "os" "os/exec" "testing" @@ -21,7 +20,8 @@ func Test_experiments(t *testing.T) { maskOnCi := func(line string) error { if os.Getenv("GITHUB_ACTIONS") == "true" { t.Logf("masking `%s`", line) - return echo(fmt.Sprintf(`::add-mask::"%s"`, line)) + t.Setenv("TEST_SF_TF_MASKING_TEST", line) + return echo(`::add-mask::$TEST_SF_TF_MASKING_TEST`) } return nil }