diff --git a/examples/go/Dockerfile b/examples/go/Dockerfile index 8372277fa..5872a8cca 100644 --- a/examples/go/Dockerfile +++ b/examples/go/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.18 +FROM golang:1.20 ENV GOPATH /go @@ -9,4 +9,4 @@ RUN go get -u github.com/twilio/twilio-go@main RUN go get -u github.com/twilio/terraform-provider-twilio@main # pipefail prevents errors in a pipeline from being masked. -CMD ["/bin/bash", "-c", "set -o pipefail && go test -race ./... -coverprofile /local/coverage.out -json | tee /local/test-report.out"] +CMD ["/bin/bash", "-c", "sleep 25 && set -o pipefail && go test -race ./... -coverprofile /local/coverage.out -json | tee /local/test-report.out"] diff --git a/examples/go/go-client/go.mod b/examples/go/go-client/go.mod index 73b7ff1b4..acecc3755 100644 --- a/examples/go/go-client/go.mod +++ b/examples/go/go-client/go.mod @@ -1,6 +1,6 @@ module go-client -go 1.18 +go 1.20 require ( github.com/golang/mock v1.6.0