tesing with expresso

20 views
Skip to first unread message

Chris Mcvittie

unread,
Feb 17, 2011, 9:29:08 AM2/17/11
to mongoo...@googlegroups.com
Hi, 
I'm currently starting testing of a mongoose based express app with expresso.

In my express app, I have a 
var mg = require('mongoose')
mg.connect("....")

I don't explicitly call disconnect or close anywhere on the mongoose object.  This seems to be a problem for expresso, as it will hang until I call mg.disconnect() in my tests.

Is there a way around this, or is am I fundamently structuring something incorrectly in my application?

Thanks, 
Chris
Reply all
Reply to author
Forward
0 new messages