Skip to content

Commit

Permalink
test: reduce integration test flakiness (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
amchiclet committed Mar 24, 2022
1 parent 4cc74b7 commit 1772d79
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions system-test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// +build integration,go1.7
//go:build integration && go1.7

package e2e

Expand Down Expand Up @@ -96,7 +96,7 @@ git reset --hard {{.Commit}}
retry npm_install --nodedir="$NODEDIR"
npm run compile
npm run compile
npm pack --nodedir="$NODEDIR" >/dev/null
VERSION=$(node -e "console.log(require('./package.json').version);")
PROFILER="$HOME/cloud-profiler-nodejs/google-cloud-profiler-$VERSION.tgz"
Expand All @@ -110,6 +110,9 @@ retry npm_install node-pre-gyp
retry npm_install --nodedir="$NODEDIR" "$PROFILER" typescript gts
npm run compile
# Workaround to reduce flakiness connecting to the metadata server.
export DETECT_GCP_RETRIES=5
{{- end }}
{{ define "integration" -}}
Expand Down

0 comments on commit 1772d79

Please sign in to comment.