From f143bd369afcb5455edb54c2b90ad7aaac719339 Mon Sep 17 00:00:00 2001 From: Justin Van Patten Date: Wed, 4 Sep 2024 10:28:26 -0700 Subject: [PATCH] Fix policy pack perf test (#1678) This change fixes up `TestPolicyPacks` so that it can run without always failing. --- misc/test/performance_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/test/performance_test.go b/misc/test/performance_test.go index 0aa02d142..e24f690fa 100644 --- a/misc/test/performance_test.go +++ b/misc/test/performance_test.go @@ -129,7 +129,7 @@ func TestAccAwsPyS3Folder(t *testing.T) { } func TestPolicyPacks(t *testing.T) { - policyPack := path.Join(getCwd(t), "..", "benchmarks", "policy-slow") + policyPack := path.Join(getCwd(t), "..", "benchmarks", "policy-pack") // Install the dependencies for the policy pack first npmInstallCmd := exec.Command("npm", "install") @@ -142,8 +142,8 @@ func TestPolicyPacks(t *testing.T) { Dir: path.Join(getCwd(t), "..", "..", "aws-go-s3-folder"), UpdateCommandlineFlags: []string{fmt.Sprintf("--policy-pack=%s", policyPack)}, ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) { - helpers.AssertHTTPResult(t, "http://"+stack.Outputs["website_url"].(string), nil, func(body string) bool { - return assert.Contains(t, body, "Hello, Pulumi!") + helpers.AssertHTTPResult(t, "http://"+stack.Outputs["websiteUrl"].(string), nil, func(body string) bool { + return assert.Contains(t, body, "Hello, world!") }) }, }