Skip to content

Commit 91e02fb

Browse files
authored
Merge pull request #1429 from gruntwork-io/fix-circle-ci
Fix CircleCi Helm Test
2 parents 9ffe143 + 988a7a4 commit 91e02fb

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

examples/terraform-aws-lambda-example/src/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
The lambda executable `handler` was built using
44

55
``` shell
6-
go build bootstrap.go
6+
go get github.com/aws/aws-lambda-go/lambda
7+
GOOS=linux GOARCH=amd64 go build -tags lambda.norpc -o bootstrap .
78
```
1.12 MB
Binary file not shown.

modules/retry/retry_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,19 +115,20 @@ func TestDoWithTimeout(t *testing.T) {
115115
func TestDoInBackgroundUntilStopped(t *testing.T) {
116116
t.Parallel()
117117

118-
sleepBetweenRetries := 5 * time.Second
118+
sleepBetweenRetries := 2 * time.Second
119+
waitStop := sleepBetweenRetries*2 + sleepBetweenRetries/2
119120
counter := 0
120121

121122
stop := DoInBackgroundUntilStopped(t, t.Name(), sleepBetweenRetries, func() {
122123
counter++
124+
t.Log(time.Now(), counter)
123125
})
124126

125-
time.Sleep(sleepBetweenRetries * 3)
127+
time.Sleep(waitStop)
126128
stop.Done()
127-
128129
assert.Equal(t, 3, counter)
129130

130-
time.Sleep(sleepBetweenRetries * 3)
131+
time.Sleep(waitStop)
131132
assert.Equal(t, 3, counter)
132133
}
133134

test/helm_keda_remote_example_template_snapshot_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,5 +173,5 @@ func TestHelmKedaRemoteExampleTemplateRenderedPackageDiff(t *testing.T) {
173173
output := helm.RenderRemoteTemplate(t, options, "https://kedacore.github.io/charts", releaseName, []string{})
174174

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

0 commit comments

Comments
 (0)