Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

show that 460 is fixed

closes #460
  • Loading branch information...
commit 4070747a102a8e3568319069aa3543e23a037076 1 parent 6b95f38
@aheckmann aheckmann authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/connection.test.js
View
9 test/connection.test.js
@@ -303,7 +303,16 @@ describe('connections:', function(){
var db= start({ uri: 'mongodb://whatever23939.localhost/noooope', noErrorListener: 1 });
})
+
+ it('should occur without hanging when password with special chars is used (gh-460)', function (done) {
+ var db = mongoose.createConnection('mongodb://aaron:psw?@localhost/fake', function (err) {
+ assert.ok(err);
+ db.close();
+ done();
+ });
+ });
})
+
describe('.model()', function(){
it('allows passing a schema', function(){
var db = start();
Please sign in to comment.
Something went wrong with that request. Please try again.