Skip to content

Commit

Permalink
Increase test timeout
Browse files Browse the repository at this point in the history
Test isolation caused tests to run the actual set timeouts during the tests. On a slow run this can exceed the overal 30 second timeout.
  • Loading branch information
kvij committed Apr 18, 2023
1 parent d0a8883 commit 7c5f9b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
CGO_ENABLED: 0
run: |
go mod download
go test -test.timeout 30s
go test -test.timeout 50s
GOOS=linux GOARCH=amd64 go build -o build/linux/amd64/scuttle -ldflags="-X 'main.Version=${{ steps.get_version.outputs.VERSION }}'"
# Build Docker image
# On tag, push Docker image
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG VERSION="local"
COPY . /app
WORKDIR /app
RUN go get -d
RUN go test -test.timeout 30s
RUN go test -test.timeout 50s
RUN CGO_ENABLED=0 go build -o scuttle -ldflags="-X 'main.Version=${VERSION}'"

FROM scratch
Expand Down

0 comments on commit 7c5f9b8

Please sign in to comment.