Skip to content

Commit

Permalink
Fix SDK conformance GRPC gateway test (#1390)
Browse files Browse the repository at this point in the history
Add more time to wait before start, update nodejs version to even
number.

Co-authored-by: Mark Mandel <[email protected]>
  • Loading branch information
markmandel authored Mar 5, 2020
1 parent a172102 commit cadb925
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build/build-sdk-images/restapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ ENV GOPATH /go
RUN wget -q https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \
tar -xzf go${GO_VERSION}.linux-amd64.tar.gz && rm go${GO_VERSION}.linux-amd64.tar.gz && mkdir -p ${GOPATH}

RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - && \
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
apt-get install -y nodejs

RUN apt-get install -y openjdk-8-jre
RUN apt-get install -y openjdk-8-jre

ENV PATH /usr/local/go/bin:/go/bin:$PATH

Expand Down
2 changes: 1 addition & 1 deletion build/build-sdk-images/restapi/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

set -ex
rm -rf /go/src/agones.dev/agones/test/sdk/restapi/swagger
rm /go/src/agones.dev/agones/test/sdk/restapi/http-api-test.go
rm /go/src/agones.dev/agones/test/sdk/restapi/http-api-test.go || true
4 changes: 2 additions & 2 deletions test/sdk/restapi/http-api-test.go.nolint
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func main() {

ctx := context.Background()

// Wait for SDK server to start the test (30 seconds)
for c := 0; c < 5; c++ {
// Wait for SDK server to start the test (15 seconds)
for c := 0; c < 15; c++ {
_, _, err := cli.SDKApi.Ready(ctx, swagger.SdkEmpty{})
if err == nil {
break
Expand Down

0 comments on commit cadb925

Please sign in to comment.