Skip to content

Commit

Permalink
Adding sleep since go test cases are running before mock server is up
Browse files Browse the repository at this point in the history
  • Loading branch information
AsabuHere authored Nov 16, 2023
1 parent d463d8f commit 721164e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ 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"]

0 comments on commit 721164e

Please sign in to comment.