Git Product home page Git Product logo

Comments (4)

kkaefer avatar kkaefer commented on August 28, 2024

What branch is this?

from node-sqlite3.

springmeyer avatar springmeyer commented on August 28, 2024

master - ran this test as I was seeing the same failures in a branch. After upgrading expresso the failures are less verbose:

node -v
v0.4.2
dane@haiti:~/src/node-sqlite3$ ./node_modules/expresso/bin/expresso 

   uncaught undefined: Error: SQLITE_ERROR: no such table: foo


   uncaught undefined: AssertionError:  == 0
    at /home/dane/src/node-sqlite3/test/each.test.js:34:16
    at Statement.<anonymous> (/home/dane/src/node-sqlite3/lib/sqlite3.js:11:41)


   each.test.js test Statement#each: AssertionError: Only retrieved 0 out of 100000 rows.
    at /home/dane/src/node-sqlite3/test/each.test.js:19:16
    at Test.<anonymous> (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:961:13)
    at Test.emit (events.js:39:17)
    at EventEmitter.<anonymous> (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:892:18)
    at EventEmitter.<anonymous> (events.js:59:20)
    at EventEmitter.emit (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:1053:10)
    at report (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:992:13)
    at EventEmitter.emit (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:1050:9)


   each.test.js test Statement#each with complete callback: AssertionError: true == false
    at /home/dane/src/node-sqlite3/test/each.test.js:39:16
    at Test.<anonymous> (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:961:13)
    at Test.emit (events.js:39:17)
    at EventEmitter.<anonymous> (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:892:18)
    at EventEmitter.<anonymous> (events.js:59:20)
    at EventEmitter.emit (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:1053:10)
    at report (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:992:13)
    at EventEmitter.emit (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:1050:9)


   Failures: 4

Wondering if this was due to an older 0.4.x I upgraded to 0.4.12 and get basically the same failures:

dane@haiti:~/src/node-sqlite3$ ./node_modules/expresso/bin/expresso 

   uncaught undefined: Error: SQLITE_ERROR: no such table: foo


   uncaught undefined: AssertionError: "undefined" == 0
    at /home/dane/src/node-sqlite3/test/each.test.js:34:16
    at Statement.<anonymous> (/home/dane/src/node-sqlite3/lib/sqlite3.js:11:41)


   each.test.js test Statement#each: AssertionError: Only retrieved 0 out of 100000 rows.
    at /home/dane/src/node-sqlite3/test/each.test.js:19:16
    at Test.<anonymous> (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:961:13)
    at Test.emit (events.js:61:17)
    at EventEmitter.<anonymous> (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:892:18)
    at EventEmitter.<anonymous> (events.js:81:20)
    at EventEmitter.emit (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:1053:10)
    at report (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:992:13)
    at EventEmitter.emit (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:1050:9)


   each.test.js test Statement#each with complete callback: AssertionError: true == false
    at /home/dane/src/node-sqlite3/test/each.test.js:39:16
    at Test.<anonymous> (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:961:13)
    at Test.emit (events.js:61:17)
    at EventEmitter.<anonymous> (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:892:18)
    at EventEmitter.<anonymous> (events.js:81:20)
    at EventEmitter.emit (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:1053:10)
    at report (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:992:13)
    at EventEmitter.emit (/home/dane/src/node-sqlite3/node_modules/expresso/bin/expresso:1050:9)


   Failures: 4



from node-sqlite3.

kkaefer avatar kkaefer commented on August 28, 2024

The each failure sounds like it might be related to node v0.6. Do you maybe have 0.6 headers that node-sqlite3 picks up while compiling?

from node-sqlite3.

springmeyer avatar springmeyer commented on August 28, 2024

this was not related to to node v0.6. problem was that these lines slipped past my notice:

Creating test database... This may take several minutes.
Killed

Basically the VM is a linode with 4 cores and 1.7 GB memory, and the big.db creation process was too intensive so the vm killed it. Without the 'big.db' present the tests/each.test.js emits these failures.

from node-sqlite3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.