diff --git a/package.json b/package.json index 6bf50dd9c4..f3ee6908b2 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,6 @@ "ncp": "^2.0.0", "nyc": "15.1.0", "pug": "3.0.3", - "q": "1.5.1", "sinon": "19.0.2", "stream-browserify": "3.0.0", "tsd": "0.31.2", diff --git a/test/connection.test.js b/test/connection.test.js index 03f87b40f3..e2c3ee4d57 100644 --- a/test/connection.test.js +++ b/test/connection.test.js @@ -7,7 +7,6 @@ const start = require('./common'); const STATES = require('../lib/connectionState'); -const Q = require('q'); const assert = require('assert'); const mongodb = require('mongodb'); const MongooseError = require('../lib/error/index'); @@ -119,20 +118,6 @@ describe('connections:', function() { }, /string.*createConnection/); }); - it('resolving with q (gh-5714)', async function() { - const bootMongo = Q.defer(); - - const conn = mongoose.createConnection(start.uri); - - conn.on('connected', function() { - bootMongo.resolve(this); - }); - - const _conn = await bootMongo.promise; - assert.equal(_conn, conn); - await conn.close(); - }); - it('connection plugins (gh-7378)', async function() { const conn1 = mongoose.createConnection(start.uri); const conn2 = mongoose.createConnection(start.uri);