Skip to content

Commit

Permalink
Merge pull request #1429 from gruntwork-io/fix-circle-ci
Browse files Browse the repository at this point in the history
Fix CircleCi Helm Test
  • Loading branch information
james03160927 authored Aug 5, 2024
2 parents 9ffe143 + 988a7a4 commit 91e02fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion examples/terraform-aws-lambda-example/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
The lambda executable `handler` was built using

``` shell
go build bootstrap.go
go get github.com/aws/aws-lambda-go/lambda
GOOS=linux GOARCH=amd64 go build -tags lambda.norpc -o bootstrap .
```
Binary file modified examples/terraform-aws-lambda-example/src/bootstrap
Binary file not shown.
9 changes: 5 additions & 4 deletions modules/retry/retry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,20 @@ func TestDoWithTimeout(t *testing.T) {
func TestDoInBackgroundUntilStopped(t *testing.T) {
t.Parallel()

sleepBetweenRetries := 5 * time.Second
sleepBetweenRetries := 2 * time.Second
waitStop := sleepBetweenRetries*2 + sleepBetweenRetries/2
counter := 0

stop := DoInBackgroundUntilStopped(t, t.Name(), sleepBetweenRetries, func() {
counter++
t.Log(time.Now(), counter)
})

time.Sleep(sleepBetweenRetries * 3)
time.Sleep(waitStop)
stop.Done()

assert.Equal(t, 3, counter)

time.Sleep(sleepBetweenRetries * 3)
time.Sleep(waitStop)
assert.Equal(t, 3, counter)
}

Expand Down
2 changes: 1 addition & 1 deletion test/helm_keda_remote_example_template_snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,5 @@ func TestHelmKedaRemoteExampleTemplateRenderedPackageDiff(t *testing.T) {
output := helm.RenderRemoteTemplate(t, options, "https://kedacore.github.io/charts", releaseName, []string{})

// run the diff and assert the number of diffs matches the number of diffs in the snapshot
require.Equal(t, 18, helm.DiffAgainstSnapshot(t, options, output, releaseName))
require.Equal(t, 24, helm.DiffAgainstSnapshot(t, options, output, releaseName))
}

0 comments on commit 91e02fb

Please sign in to comment.