Skip to content

Commit

Permalink
test(profiler): make integration test use Go 1.17.7 (#5620)
Browse files Browse the repository at this point in the history
  • Loading branch information
amchiclet committed Feb 16, 2022
1 parent 0bdbf56 commit 2aff217
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions profiler/kokoro/integration_test.sh
Expand Up @@ -33,6 +33,15 @@ cd $(dirname $0)/..
export GOOGLE_APPLICATION_CREDENTIALS="${KOKORO_KEYSTORE_DIR}/72935_cloud-profiler-e2e-service-account-key"
export GCLOUD_TESTS_GOLANG_PROJECT_ID="cloud-profiler-e2e"

# Ensure a newer version of Go is used so it is compatible with newer libraries.
# Here we install v1.17.7 which is the current version as of when this code
# was written, following instructions from https://go.dev/doc/manage-install.
# Go modules might not be on for previous versions of Go, so we also have to
# enable the module system explicitly.
export GO111MODULE=on
go install golang.org/dl/go1.17.7
go1.17.7 download

# Run test.
retry go mod download
go test -run TestAgentIntegration -run_only_profiler_backoff_test -timeout 1h
retry go1.17.7 mod download
go1.17.7 test -run TestAgentIntegration -run_only_profiler_backoff_test -timeout 1h

0 comments on commit 2aff217

Please sign in to comment.