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

Travis tests failing sometimes #3

Open
finnp opened this issue Mar 30, 2016 · 4 comments
Open

Travis tests failing sometimes #3

finnp opened this issue Mar 30, 2016 · 4 comments

Comments

@finnp
Copy link
Contributor

finnp commented Mar 30, 2016

Tests fail on travis sometimes, I wasn't able to reproduce it:

  hoodie.account
  ✓ .isSignedIn returns false (307ms)
  ✓ .id persist page reload (1409ms)
  ✓ .signIn(options) with invalid credentials (402ms)
  ✓ signUp(options) (717ms)
  ✓ signIn(options) (683ms)
  ✓ .id does not change after signUp & signIn (324ms)
  ✓ .username set after signIn (283ms)
  ✓ .isSignedIn() returns true after signIn (298ms)
  ✓ .update({password: newPassword}) resolves with account properties (878ms)
    - .update({username: newUsername}) resolves with account properties
      https://github.com/hoodiehq/hoodie-account-server/issues/79
  ✓ .signOut() resolves with account properties (693ms)
  ✓ .id changes after .signOut() (277ms)
  ✓ .id gets set after signIn (380ms)
  ✓ .destroy() resolves with account properties (672ms)
  ✓ .id changes after .destroy() (297ms)
[17:41:39]:  ERROR  ServerError unknown error: Cannot set property 'id' of undefined
RuntimeError: unknown error: Cannot set property 'id' of undefined 
    at execute(<Function>) - integration.js:355:6 
[17:41:39]:  ERROR  ServerError expected 'Error' to equal 'UnauthorizedError'
Error: expected 'Error' to equal 'UnauthorizedError' 
    at execute(<Function>) - integration.js:355:6 
  1) .fetch with UnauthorizedError
  2) .hasInvalidSession()
  ✓ .signIn() when unauthenticated (675ms)
  15 passing (50s)
  1 pending
  2 failing
  1) hoodie.account .fetch with UnauthorizedError:
      undefined: expected 'Error' to equal 'UnauthorizedError'
      + expected - actual
      -Error
      +UnauthorizedError


  2) hoodie.account .hasInvalidSession():
     undefined: expected null to equal true

@gr2m
Copy link
Contributor

gr2m commented May 6, 2016

This thing really becomes annoying :/

@gr2m
Copy link
Contributor

gr2m commented Jun 28, 2016

I can reproduce this locally by running

SAUCELABS_ACCESS_KEY=1f6164de-f3d1-4af9-83d0-5358b42fbe56 SAUCELABS_USERNAME=hoodie CLIENT=saucelabs:chrome npm test

gr2m added a commit that referenced this issue Jun 28, 2016
@gr2m
Copy link
Contributor

gr2m commented Jun 28, 2016

looks like b259427 fixed it crossing figners

@gr2m
Copy link
Contributor

gr2m commented Jul 6, 2016

ugh, seems like it’s not yet resolved after all:
#33

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

No branches or pull requests

2 participants