Skip to content

Commit

Permalink
Fix policy pack perf test (#1678)
Browse files Browse the repository at this point in the history
This change fixes up `TestPolicyPacks` so that it can run without always
failing.
  • Loading branch information
justinvp committed Sep 4, 2024
1 parent 1e2fc47 commit f143bd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions misc/test/performance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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!")
})
},
}
Expand Down

0 comments on commit f143bd3

Please sign in to comment.