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 failures on different locale/timezone #4

Open
sallakarppinen opened this issue Jan 18, 2017 · 0 comments
Open

Test failures on different locale/timezone #4

sallakarppinen opened this issue Jan 18, 2017 · 0 comments

Comments

@sallakarppinen
Copy link

Hello,

when running the tests locally, I received the following errors:

 2 failing

  1) API Loodle GET /loodle/:id should send the loodle data:

      AssertionError: '2016-02-10T17:10:00.000Z' == '2016-02-10T16:10:00.000Z'
      + expected - actual

      -2016-02-10T17:10:00.000Z
      +2016-02-10T16:10:00.000Z
      
      at Test.<anonymous> (test/loodle.api.test.js:1519:32)
      at Test.assert (node_modules/supertest/lib/test.js:156:6)
      at assert (node_modules/supertest/lib/test.js:127:12)
      at node_modules/supertest/lib/test.js:124:5
      at Test.Request.callback (node_modules/superagent/lib/node/index.js:691:12)
      at IncomingMessage.<anonymous> (node_modules/superagent/lib/node/index.js:922:12)
      at endReadableNT (_stream_readable.js:974:12)
      at _combinedTickCallback (internal/process/next_tick.js:74:11)
      at process._tickCallback (internal/process/next_tick.js:98:9)

  2) Loodle get should send the loodle data:
     AssertionError: 2016-02-10T17:10:00.000Z == 'Wed Feb 10 2016 17:10:00 GMT+0100 (CET)'
      at test/loodle.test.js:1274:13
      at app/controllers/loodle.js:959:10
      at node_modules/async/lib/async.js:726:13
      at node_modules/async/lib/async.js:52:16
      at node_modules/async/lib/async.js:269:32
      at node_modules/async/lib/async.js:44:16
      <snip>

I think this is probably due to different date and time settings and locale - I'm on GMT and en-gb.

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

1 participant