Skip to content

chore: fix usage of timeout in alpine E2E test#92

Merged
nolanmar511 merged 2 commits intogoogle:masterfrom
nolanmar511:timeout-fix
Nov 20, 2019
Merged

chore: fix usage of timeout in alpine E2E test#92
nolanmar511 merged 2 commits intogoogle:masterfrom
nolanmar511:timeout-fix

Conversation

@nolanmar511
Copy link
Copy Markdown
Contributor

No description provided.

@nolanmar511 nolanmar511 requested a review from jqll November 20, 2019 00:08
@nolanmar511
Copy link
Copy Markdown
Contributor Author

PR #93 needs to be merged for unit tests to pass here (they fail because of formatting errors).
This PR needs to be merged for system tests to pass in #93

function timeout_after() {
if [ -f /bin/busybox ]; then
# timeout on Node 11 alpine image requires -t to specify time.
if [ -f /bin/busybox ] && [[ $(node -v) =~ ^v11.* ]]; then
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: let's use either double brackets or single for both? But I'm approving the change to stop the alerts.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the double and single brackets have slightly different semantics (I need double brackets for the second condition; I'm not sure if I can use them for the first).

I'll look into addressing this in a follow-up.

@nolanmar511 nolanmar511 merged commit 0600e52 into google:master Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants