jugglingdb/mongodb-adapter

npm test fails intermittently

BryanDonovan opened this issue · 1 comments

I get intermittent failures when running npm test.

System info:

MongoDB v2.2.2
node-mongodb v1.2.5 (native version)
Mac OS X v10.6.8
NodeJS 0.8.11

Some example failures:

/private/tmp/node_modules/jugglingdb-mongodb/node_modules/jugglingdb/test/common_test.js:1143
                    test.ok(pp.likes[3].third);
                                       ^
TypeError: Cannot read property 'third' of undefined
AssertionError: 'admin@hcompany.com' == 'mike@hcompany.com'
    at Object.assertWrapper [as equal] (/private/tmp/node_modules/jugglingdb-mongodb/node_modules/nodeunit/lib/types.js:83:39)
    at User.all.order (/private/tmp/node_modules/jugglingdb-mongodb/node_modules/jugglingdb/test/common_test.js:950:26)
/private/tmp/node_modules/jugglingdb-mongodb/node_modules/mongodb/lib/mongodb/connection/server.js:484
        throw err;
              ^
Error: No post!
    at Error (unknown source)
    at /private/tmp/node_modules/jugglingdb-mongodb/node_modules/jugglingdb/test/common_test.js:1083:34
1602 commented

Thanks, it reproducable on my machine, looks like bad test cases.

On Mon, Dec 17, 2012 at 10:59 PM, Bryan Donovan notifications@github.comwrote:

I get intermittent failures when running npm test.

System info:

MongoDB 2.2.2
node-mongodb 1.2.5 (native version)

Some example failures:

/private/tmp/node_modules/jugglingdb-mongodb/node_modules/jugglingdb/test/common_test.js:1143
test.ok(pp.likes[3].third);
^
TypeError: Cannot read property 'third' of undefined

AssertionError: 'admin@hcompany.com' == 'mike@hcompany.com'
at Object.assertWrapper as equal
at User.all.order (/private/tmp/node_modules/jugglingdb-mongodb/node_modules/jugglingdb/test/common_test.js:950:26)

/private/tmp/node_modules/jugglingdb-mongodb/node_modules/mongodb/lib/mongodb/connection/server.js:484
throw err;
^
Error: No post!
at Error (unknown source)
at /private/tmp/node_modules/jugglingdb-mongodb/node_modules/jugglingdb/test/common_test.js:1083:34


Reply to this email directly or view it on GitHubhttps://github.com/1602/jugglingdb-mongodb/issues/2.

Thanks,
Anatoliy Chakkaev