Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: increase whoami with bearer auth timeout #1454

Closed
wants to merge 1 commit into from

Conversation

LocutusOfBorg
Copy link
Contributor

This makes the test pass on slow architectures (such as armhf) on emulated environments (such as qemu)

See e.g.:
https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-groovy/groovy/armhf/n/npm/20200506_003912_868e4@/log.gz

not ok 186 - test/tap/whoami.js # time=19002.663ms
  ---
  timeout: 300000
  file: test/tap/whoami.js
  command: /usr/bin/node
  args:
    - test/tap/whoami.js
  stdio:
    - 0
    - pipe
    - 2
  cwd: /tmp/autopkgtest.w8Bn2l/autopkgtest_tmp/smokeH32cpa
  exitCode: 1
  ...
{
    # Subtest: npm whoami with basic auth
        ok 1 - should not error
        ok 2 - got nothing on stderr
        ok 3 - exit ok
        ok 4 - got username
        1..4
    ok 1 - npm whoami with basic auth # time=6547.914ms
    
    # Subtest: npm whoami with bearer auth
        not ok 1 - timeout!
          ---
          expired: npm whoami with bearer auth
          timeout: 6000
          test: npm whoami with bearer auth
          ...
        
        1..1
        # failed 1 test
    not ok 2 - npm whoami with bearer auth # time=6231.806ms
      ---
      timeout: 6000
      ...
    
    1..2
    # failed 1 of 2 tests
    # time=12951.956ms
}

@LocutusOfBorg LocutusOfBorg requested a review from a team as a code owner June 23, 2020 09:49
This makes the test pass on slow architectures (such as armhf) on emulated environments (such as qemu)
@LocutusOfBorg LocutusOfBorg changed the title test: increease whoami with bearer auth timeout test: increase whoami with bearer auth timeout Jun 25, 2020
@ruyadorno ruyadorno added Enhancement new feature or improvement Release 6.x work is associated with a specific npm 6 release semver:patch semver patch level for changes labels Aug 14, 2020
ruyadorno pushed a commit that referenced this pull request Aug 17, 2020
This makes the test pass on slow architectures (such as armhf) on emulated environments (such as qemu)

PR-URL: #1454
Credit: @LocutusOfBorg
Close: #1454
Reviewed-by: @ruyadorno
ruyadorno pushed a commit that referenced this pull request Aug 17, 2020
This makes the test pass on slow architectures (such as armhf) on emulated environments (such as qemu)

PR-URL: #1454
Credit: @LocutusOfBorg
Close: #1454
Reviewed-by: @ruyadorno
@ruyadorno ruyadorno closed this in c605266 Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement new feature or improvement Release 6.x work is associated with a specific npm 6 release semver:patch semver patch level for changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants