Skip to content

Instantly share code, notes, and snippets.

@huned
Created November 11, 2019 06:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huned/401bd7781f7092a69fa925dd0b9ce4c7 to your computer and use it in GitHub Desktop.
Save huned/401bd7781f7092a69fa925dd0b9ce4c7 to your computer and use it in GitHub Desktop.
1931 passing (3m)
3 failing
1) [POSTGRES] DataTypes
should return YYYY-MM-DD format string for DATEONLY:
AssertionError: expected 10 to equal 11
+ expected - actual
-10
+11
at Proxy.assertEqual (node_modules/chai/lib/chai/core/assertions.js:1026:12)
at Proxy.methodWrapper (node_modules/chai/lib/chai/utils/addMethod.js:57:25)
at doAsserterAsyncAndAddThen (node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)
at Proxy.<anonymous> (node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)
at Proxy.overwritingMethodWrapper (node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)
at /Users/huned/data/work/forks/sequelize/test/integration/data-types.test.js:712:44
at AsyncResource.runInAsyncScope (async_hooks.js:172:16)
From previous event:
at Context.<anonymous> (test/integration/data-types.test.js:708:10)
at processImmediate (internal/timers.js:439:21)
2) [POSTGRES Specific] Data Types
DATE/DATEONLY Sanitize
DATEONLY should sanitize a Date as normal:
AssertionError: expected '2019-11-10' to equal '2019-11-11'
+ expected - actual
-2019-11-10
+2019-11-11
at Proxy.assertEqual (node_modules/chai/lib/chai/core/assertions.js:1026:12)
at Proxy.methodWrapper (node_modules/chai/lib/chai/utils/addMethod.js:57:25)
at doAsserterAsyncAndAddThen (node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)
at Proxy.<anonymous> (node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)
at Proxy.overwritingMethodWrapper (node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)
at Context.<anonymous> (test/integration/dialects/postgres/data-types.test.js:57:65)
at processImmediate (internal/timers.js:439:21)
3) [POSTGRES Specific] QueryInterface
createFunction
uses declared variables:
SequelizeDatabaseError: function "add_one" already exists with same argument types
at Query.formatError (lib/dialects/postgres/query.js:366:16)
at /Users/huned/data/work/forks/sequelize/lib/dialects/postgres/query.js:72:18
From previous event:
at Query.run (lib/dialects/postgres/query.js:64:23)
at /Users/huned/data/work/forks/sequelize/lib/sequelize.js:644:29
From previous event:
at /Users/huned/data/work/forks/sequelize/lib/sequelize.js:644:12
From previous event:
at /Users/huned/data/work/forks/sequelize/lib/sequelize.js:640:10
at /Users/huned/data/work/forks/sequelize/node_modules/retry-as-promised/index.js:70:21
at retryAsPromised (node_modules/retry-as-promised/index.js:60:10)
at /Users/huned/data/work/forks/sequelize/lib/sequelize.js:630:30
From previous event:
at Sequelize.query (lib/sequelize.js:579:23)
at QueryInterface.createFunction (lib/query-interface.js:1264:29)
at Context.<anonymous> (test/integration/dialects/postgres/query-interface.test.js:198:36)
at AsyncResource.runInAsyncScope (async_hooks.js:172:16)
From previous event:
at processImmediate (internal/timers.js:439:21)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment