Fix flapping acceptance test

Signed-off-by: QuentinBisson <quentin@giantswarm.io>
This commit is contained in:
QuentinBisson 2021-04-26 11:16:25 +02:00
parent 87915dc652
commit 4aea4560ce
No known key found for this signature in database
GPG Key ID: CFF52B2A46CC941B
4 changed files with 10 additions and 3 deletions

View File

@ -42,7 +42,7 @@ jobs:
test: test:
docker: docker:
# Whenever the Go version is updated here, .promu.yml should also be updated. # Whenever the Go version is updated here, .promu.yml should also be updated.
- image: circleci/golang:1.15 - image: circleci/golang:1.16
# maildev containers are for running the email tests against a "real" SMTP server. # maildev containers are for running the email tests against a "real" SMTP server.
# See notify/email_test.go for details. # See notify/email_test.go for details.
- image: djfarrelly/maildev:1.1.0 - image: djfarrelly/maildev:1.1.0

2
go.mod
View File

@ -36,4 +36,4 @@ require (
gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v2 v2.4.0
) )
go 1.14 go 1.16

View File

@ -20,6 +20,11 @@ if ! [[ $(protoc --version) =~ "3.15.8" ]]; then
fi fi
echo "installing plugins" echo "installing plugins"
# Since we run go mod download, the go.sum will change.
# Make a backup.
cp go.sum go.sum.bak
go mod download go mod download
INSTALL_PKGS="golang.org/x/tools/cmd/goimports github.com/gogo/protobuf/protoc-gen-gogofast" INSTALL_PKGS="golang.org/x/tools/cmd/goimports github.com/gogo/protobuf/protoc-gen-gogofast"
@ -46,3 +51,5 @@ for dir in ${DIRS}; do
goimports -w *.pb.go goimports -w *.pb.go
popd popd
done done
mv go.sum.bak go.sum

View File

@ -176,7 +176,7 @@ route:
receiver: "default" receiver: "default"
group_by: [alertname] group_by: [alertname]
group_wait: 1s group_wait: 1s
group_interval: 1s group_interval: 2s
repeat_interval: 3s repeat_interval: 3s
receivers: receivers: