Use listener for test
This commit is contained in:
parent
abc2f130c9
commit
1a20ca0bc3
@ -11,11 +11,12 @@ describe('transaction', function() {
|
||||
var server;
|
||||
before(function(done) {
|
||||
server = require('../../app/server')();
|
||||
server.listen(SERVER_PORT, '127.0.0.1', done);
|
||||
this.listener = server.listen(SERVER_PORT, '127.0.0.1');
|
||||
this.listener.on('listening', done);
|
||||
});
|
||||
|
||||
after(function(done) {
|
||||
server.close(done);
|
||||
this.listener.close(done);
|
||||
});
|
||||
|
||||
var sqlRequest = request.defaults({
|
||||
|
Loading…
Reference in New Issue
Block a user