Dexie.js: Node tests: random failures on tests-collection test “or-issue#15-test” (assertions 100-109)
The or-issue#15-test in the tests-collection tests randomly fails.
To reproduce
Run the following command several times until you see the error. It is “random” – so on some runs, all tests will pass.
npm run test:node -- tests-collection
Failures:
not ok 100 - error:SyntaxError: Unexpected token in JSON at position 25
# at JSON.parse (<anonymous>)
# at Typeson.s.parse (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:776:2369)
# at Object.decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:6617:20)
# at IDBCursorWithValue.IDBCursor.__decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1789:35)
# at Object.cursorContinue [as op] (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1845:20)
# at executeNextRequest (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5237:23)
# at success (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5173:13)
# at /Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1767:13
# at triggerSuccess (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1839:36)
# at checkKey (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1849:29), expected: true, got: false, test: or-issue#15-test, module: collection, source: at /Users/aral/indie/other/forks/dexie/node_modules/qunitjs/qunit/qunit.js:2194:12
not ok 101 - error:SyntaxError: Unexpected token in JSON at position 25
# at JSON.parse (<anonymous>)
# at Typeson.s.parse (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:776:2369)
# at Object.decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:6617:20)
# at IDBCursorWithValue.IDBCursor.__decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1789:35)
# at Object.cursorContinue [as op] (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1845:20)
# at executeNextRequest (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5237:23)
# at success (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5173:13)
# at /Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1767:13
# at triggerSuccess (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1839:36)
# at checkKey (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1849:29), expected: true, got: false, test: or-issue#15-test, module: collection, source: at /Users/aral/indie/other/forks/dexie/node_modules/qunitjs/qunit/qunit.js:2194:12
not ok 102 - error:SyntaxError: Unexpected token in JSON at position 25
# at JSON.parse (<anonymous>)
# at Typeson.s.parse (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:776:2369)
# at Object.decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:6617:20)
# at IDBCursorWithValue.IDBCursor.__decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1789:35)
# at Object.cursorContinue [as op] (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1845:20)
# at executeNextRequest (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5237:23)
# at success (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5173:13)
# at /Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1767:13
# at triggerSuccess (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1839:36)
# at checkKey (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1849:29), expected: true, got: false, test: or-issue#15-test, module: collection, source: at /Users/aral/indie/other/forks/dexie/node_modules/qunitjs/qunit/qunit.js:2194:12
not ok 103 - error:SyntaxError: Unexpected token in JSON at position 25
# at JSON.parse (<anonymous>)
# at Typeson.s.parse (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:776:2369)
# at Object.decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:6617:20)
# at IDBCursorWithValue.IDBCursor.__decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1789:35)
# at Object.cursorContinue [as op] (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1845:20)
# at executeNextRequest (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5237:23)
# at success (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5173:13)
# at /Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1767:13
# at triggerSuccess (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1839:36)
# at checkKey (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1849:29), expected: true, got: false, test: or-issue#15-test, module: collection, source: at /Users/aral/indie/other/forks/dexie/node_modules/qunitjs/qunit/qunit.js:2194:12
not ok 104 - error:SyntaxError: Unexpected token in JSON at position 25
# at JSON.parse (<anonymous>)
# at Typeson.s.parse (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:776:2369)
# at Object.decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:6617:20)
# at IDBCursorWithValue.IDBCursor.__decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1789:35)
# at Object.cursorContinue [as op] (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1845:20)
# at executeNextRequest (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5237:23)
# at success (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5173:13)
# at /Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1767:13
# at triggerSuccess (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1839:36)
# at checkKey (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1849:29), expected: true, got: false, test: or-issue#15-test, module: collection, source: at /Users/aral/indie/other/forks/dexie/node_modules/qunitjs/qunit/qunit.js:2194:12
not ok 105 - error:SyntaxError: Unexpected token in JSON at position 25
# at JSON.parse (<anonymous>)
# at Typeson.s.parse (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:776:2369)
# at Object.decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:6617:20)
# at IDBCursorWithValue.IDBCursor.__decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1789:35)
# at Object.cursorContinue [as op] (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1845:20)
# at executeNextRequest (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5237:23)
# at success (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5173:13)
# at /Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1767:13
# at triggerSuccess (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1839:36)
# at checkKey (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1849:29), expected: true, got: false, test: or-issue#15-test, module: collection, source: at /Users/aral/indie/other/forks/dexie/node_modules/qunitjs/qunit/qunit.js:2194:12
not ok 106 - error:SyntaxError: Unexpected token in JSON at position 25
# at JSON.parse (<anonymous>)
# at Typeson.s.parse (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:776:2369)
# at Object.decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:6617:20)
# at IDBCursorWithValue.IDBCursor.__decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1789:35)
# at Object.cursorContinue [as op] (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1845:20)
# at executeNextRequest (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5237:23)
# at success (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5173:13)
# at /Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1767:13
# at triggerSuccess (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1839:36)
# at checkKey (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1849:29), expected: true, got: false, test: or-issue#15-test, module: collection, source: at /Users/aral/indie/other/forks/dexie/node_modules/qunitjs/qunit/qunit.js:2194:12
not ok 107 - error:SyntaxError: Unexpected token in JSON at position 25
# at JSON.parse (<anonymous>)
# at Typeson.s.parse (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:776:2369)
# at Object.decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:6617:20)
# at IDBCursorWithValue.IDBCursor.__decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1789:35)
# at Object.cursorContinue [as op] (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1845:20)
# at executeNextRequest (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5237:23)
# at success (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5173:13)
# at /Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1767:13
# at triggerSuccess (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1839:36)
# at checkKey (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1849:29), expected: true, got: false, test: or-issue#15-test, module: collection, source: at /Users/aral/indie/other/forks/dexie/node_modules/qunitjs/qunit/qunit.js:2194:12
not ok 108 - error:SyntaxError: Unexpected token in JSON at position 25
# at JSON.parse (<anonymous>)
# at Typeson.s.parse (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:776:2369)
# at Object.decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:6617:20)
# at IDBCursorWithValue.IDBCursor.__decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1789:35)
# at Object.cursorContinue [as op] (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1845:20)
# at executeNextRequest (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5237:23)
# at success (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5173:13)
# at /Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1767:13
# at triggerSuccess (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1839:36)
# at checkKey (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1849:29), expected: true, got: false, test: or-issue#15-test, module: collection, source: at /Users/aral/indie/other/forks/dexie/node_modules/qunitjs/qunit/qunit.js:2194:12
not ok 109 - error:SyntaxError: Unexpected token in JSON at position 25
# at JSON.parse (<anonymous>)
# at Typeson.s.parse (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:776:2369)
# at Object.decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:6617:20)
# at IDBCursorWithValue.IDBCursor.__decode (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1789:35)
# at Object.cursorContinue [as op] (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1845:20)
# at executeNextRequest (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5237:23)
# at success (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:5173:13)
# at /Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1767:13
# at triggerSuccess (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1839:36)
# at checkKey (/Users/aral/indie/other/forks/IndexedDBShim/dist/indexeddbshim-node.js:1849:29), expected: true, got: false, test: or-issue#15-test, module: collection, source: at /Users/aral/indie/other/forks/dexie/node_modules/qunitjs/qunit/qunit.js:2194:12
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (5 by maintainers)
Commits related to this issue
- Trying to resolve issue #711 — committed to dexie/Dexie.js by dfahlander 6 years ago
Let’s see if that was the issue. I thought the unicode module regards to index- and table names only. This was an issue with the data. The particular test that I modified was not testing unicode support, but we could easily add a new unicode test.