From f5ee870b4df700d766aea685afb0be87eeae25e2 Mon Sep 17 00:00:00 2001 From: Athira Sabu <102021496+AsabuHere@users.noreply.github.com> Date: Fri, 17 Nov 2023 14:46:09 +0530 Subject: [PATCH] Update Dockerfile to wait until mock server is up --- examples/go/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/go/Dockerfile b/examples/go/Dockerfile index c51c861e0..c49b8d477 100644 --- a/examples/go/Dockerfile +++ b/examples/go/Dockerfile @@ -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"]