Skip to content

Commit

Permalink
Update Dockerfile to wait until mock server is up
Browse files Browse the repository at this point in the history
  • Loading branch information
AsabuHere authored Nov 17, 2023
1 parent 721164e commit f5ee870
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ COPY go-client .
RUN go get -u github.com/twilio/twilio-go@main
RUN go get -u github.com/twilio/terraform-provider-twilio@main

RUN sleep 10

# 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"]

0 comments on commit f5ee870

Please sign in to comment.